From ea9c1cbedbdfddfbd9b45071bfa8055fbbd4e238 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Tue, 23 Jun 2015 20:07:51 +0200 Subject: [PATCH] i/c/*.h: remove references to coap_config.h The public header doesn't have to include a local dynamically created header file from the autotools. This would break the usability of the public header files. --- include/coap/address.h | 2 -- include/coap/async.h | 1 - include/coap/coap_io.h | 2 -- include/coap/coap_time.h | 2 -- include/coap/debug.h | 2 -- include/coap/net.h | 5 ++--- include/coap/pdu.h | 1 - include/coap/prng.h | 2 -- include/coap/resource.h | 2 -- include/coap/subscribe.h | 1 - 10 files changed, 2 insertions(+), 18 deletions(-) diff --git a/include/coap/address.h b/include/coap/address.h index d0e9166d..05644423 100644 --- a/include/coap/address.h +++ b/include/coap/address.h @@ -14,8 +14,6 @@ #ifndef _COAP_ADDRESS_H_ #define _COAP_ADDRESS_H_ -#include "coap_config.h" - #ifdef HAVE_ASSERT_H #include #else diff --git a/include/coap/async.h b/include/coap/async.h index b4c4d635..48e21c40 100644 --- a/include/coap/async.h +++ b/include/coap/async.h @@ -15,7 +15,6 @@ #ifndef _COAP_ASYNC_H_ #define _COAP_ASYNC_H_ -#include "coap_config.h" #include "net.h" #ifndef WITHOUT_ASYNC diff --git a/include/coap/coap_io.h b/include/coap/coap_io.h index 06a4642e..65b66e07 100644 --- a/include/coap/coap_io.h +++ b/include/coap/coap_io.h @@ -9,8 +9,6 @@ #ifndef _COAP_IO_H_ #define _COAP_IO_H_ -#include "coap_config.h" - #ifdef HAVE_ASSERT_H #include #else diff --git a/include/coap/coap_time.h b/include/coap/coap_time.h index 6228b4f9..aa959af0 100644 --- a/include/coap/coap_time.h +++ b/include/coap/coap_time.h @@ -21,8 +21,6 @@ extern "C" { #endif -#include "coap_config.h" - /** * @defgroup clock Clock Handling * Default implementation of internal clock. diff --git a/include/coap/debug.h b/include/coap/debug.h index e3f21519..acdf88e7 100644 --- a/include/coap/debug.h +++ b/include/coap/debug.h @@ -9,8 +9,6 @@ #ifndef _COAP_DEBUG_H_ #define _COAP_DEBUG_H_ -#include "coap_config.h" - #ifndef COAP_DEBUG_FD #define COAP_DEBUG_FD stdout #endif diff --git a/include/coap/net.h b/include/coap/net.h index 3f524a4a..871c3286 100644 --- a/include/coap/net.h +++ b/include/coap/net.h @@ -13,8 +13,6 @@ extern "C" { #endif -#include "coap_config.h" - #ifdef HAVE_ASSERT_H #include #else @@ -216,7 +214,7 @@ coap_new_message_id(coap_context_t *context) { #endif } -/* +/** * CoAP stack context must be released with coap_free_context(). This function * clears all entries from the receive queue and send queue and deletes the * resources that have been registered with @p context, and frees the attached @@ -544,3 +542,4 @@ coap_pdu_t *coap_wellknown_response(coap_context_t *context, #endif #endif /* _COAP_NET_H_ */ + diff --git a/include/coap/pdu.h b/include/coap/pdu.h index 639c46f5..9b17f89a 100644 --- a/include/coap/pdu.h +++ b/include/coap/pdu.h @@ -14,7 +14,6 @@ #ifndef _PDU_H_ #define _PDU_H_ -#include "coap_config.h" #include "uri.h" #ifdef WITH_LWIP diff --git a/include/coap/prng.h b/include/coap/prng.h index f963e79d..bd30e8f4 100644 --- a/include/coap/prng.h +++ b/include/coap/prng.h @@ -14,8 +14,6 @@ #ifndef _COAP_PRNG_H_ #define _COAP_PRNG_H_ -#include "coap_config.h" - /** * @defgroup prng Pseudo Random Numbers * @{ diff --git a/include/coap/resource.h b/include/coap/resource.h index ec5d3e85..2947691f 100644 --- a/include/coap/resource.h +++ b/include/coap/resource.h @@ -14,8 +14,6 @@ #ifndef _COAP_RESOURCE_H_ #define _COAP_RESOURCE_H_ -#include "coap_config.h" - #if defined(HAVE_ASSERT_H) && !defined(assert) # include #endif diff --git a/include/coap/subscribe.h b/include/coap/subscribe.h index 35b1cece..ca2f44b8 100644 --- a/include/coap/subscribe.h +++ b/include/coap/subscribe.h @@ -11,7 +11,6 @@ #ifndef _COAP_SUBSCRIBE_H_ #define _COAP_SUBSCRIBE_H_ -#include "coap_config.h" #include "address.h" #include "coap_io.h"