Skip to content

Commit

Permalink
coap.h: adding main header file into various source files
Browse files Browse the repository at this point in the history
After splitting of the platform header part within libcoap some source
files that use functions of the network stack need to include coap.h
(which is including the libcoap.h) to get the platform specific header file
for the network stack.
Sort list of included headers in alphabetical order.
  • Loading branch information
tijuca authored and obgm committed Jan 10, 2016
1 parent eb7ae9b commit f4166a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/async.c
Expand Up @@ -14,12 +14,11 @@
#ifndef WITHOUT_ASYNC

#include "coap_config.h"

#include "utlist.h"

#include "mem.h"
#include "debug.h"
#include "coap.h"
#include "async.h"
#include "debug.h"
#include "mem.h"
#include "utlist.h"

coap_async_state_t *
coap_register_async(coap_context_t *context, coap_address_t *peer,
Expand Down
5 changes: 3 additions & 2 deletions src/resource.c
Expand Up @@ -7,12 +7,13 @@
*/

#include "coap_config.h"
#include "utlist.h"
#include "coap.h"
#include "debug.h"
#include "mem.h"
#include "net.h"
#include "debug.h"
#include "resource.h"
#include "subscribe.h"
#include "utlist.h"

#ifdef WITH_LWIP
/* mem.h is only needed for the string free calls for
Expand Down
1 change: 1 addition & 0 deletions src/subscribe.c
Expand Up @@ -8,6 +8,7 @@
*/

#include "coap_config.h"
#include "coap.h"

#if defined(HAVE_ASSERT_H) && !defined(assert)
# include <assert.h>
Expand Down

0 comments on commit f4166a5

Please sign in to comment.