mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 17:52:54 +03:00
include/coap2/coap_subscribe_internal.h and include/coap2/coap_session_internal.h contain the information not exposed to applications. This internal information was moved out of the respective include/coap2/subscribe.h and include/coap2/coap_session.h files comprising of the coap_subscription_t and coap_endpoint_t definitions. To ease inter .h file dependencies, a new file include/coap2/coap_forward_decls.h is added to include forward declarations for both libcoap and applications. Makefile.am: Include include/coap2/coap_*internal.h as files for distribution, but not installed for applications to use. Include include/coap2/coap_forward_decls.h, so it is installed for applications. include/coap2/coap.h.in: Include "coap_forward_decls.h" include/coap2/coap_forward_decls.h: (New) Forward declare structures and typedef the structures defined in coap_internal.h. include/coap2/coap_internal.h: (New) Includes all the required #include files that libcoap internally needs. include/coap2/coap_session_internal.h: (New) Include the coap_endpoint_t information taken from include/coap2/coap_session.h. include/coap2/coap_session.h: Remove coap_endpoint_t definition. include/coap2/lwippools.h: Add in coap_forward_decls.h and coap_internal.h to handle the LwIP memory allocations. include/coap2/resource.h: Add in "block.h" to allow things to build. include/coap2/coap_subscribe_internal.h: (New) Include the coap_subscription_t information taken from include/coap2/subscribe.h. include/coap2/subscribe.h: Remove coap_subscription_t definition. libcoap-2.map: libcoap-2.sym: Updated, removing coap_subscription_init(). src/address.c: src/asyn.c: src/block.c: src/coap_debug.c: src/coap_event.c: src/coap_gnutls.c: src/coap_hashkey.c: src/coap_io.c: src/coap_io_lwip.c: src/coap_notls.c: src/coap_openssl.c: src/coap_session.c: src/coap_time.c: src/coap_tinydtls.c: src/encode.c: src/mem.c: src/net.c: src/option.c: src/pdu.c: src/resource.c: src/str.c: src/subscribe.c: src/uri.c: Add in '#include "coap_internal.h"' to the source files. Remove other libcoap #include files. win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: Update for Windows build (not tested). examples/contiki/server.c: src/coap_io.c: Remove knowledge of endpoint from the server and update Contiki's version of coap_run_once() to do the work instead. ==== Other structures (plus some internal required #defines) will follow as separate PRs.
61 lines
1.3 KiB
C
61 lines
1.3 KiB
C
/*
|
|
* coap.h -- main header file for CoAP stack of libcoap
|
|
*
|
|
* Copyright (C) 2010-2012,2015-2017 Olaf Bergmann <bergmann@tzi.org>
|
|
* 2015 Carsten Schoenert <c.schoenert@t-online.de>
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see README for terms
|
|
* of use.
|
|
*/
|
|
|
|
#ifndef COAP_H_
|
|
#define COAP_H_
|
|
|
|
/* Define the address where bug reports for libcoap should be sent. */
|
|
#define LIBCOAP_PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
|
|
|
|
/* Define the full name of libcoap. */
|
|
#define LIBCOAP_PACKAGE_NAME "@PACKAGE_NAME@"
|
|
|
|
/* Define the full name and version of libcoap. */
|
|
#define LIBCOAP_PACKAGE_STRING "@PACKAGE_STRING@"
|
|
|
|
/* Define the home page for libcoap. */
|
|
#define LIBCOAP_PACKAGE_URL "@PACKAGE_URL@"
|
|
|
|
/* Define the version of libcoap this file belongs to. */
|
|
#define LIBCOAP_PACKAGE_VERSION "@PACKAGE_VERSION@"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "libcoap.h"
|
|
|
|
#include "coap_forward_decls.h"
|
|
#include "address.h"
|
|
#include "async.h"
|
|
#include "bits.h"
|
|
#include "block.h"
|
|
#include "coap_dtls.h"
|
|
#include "coap_event.h"
|
|
#include "coap_io.h"
|
|
#include "coap_time.h"
|
|
#include "coap_debug.h"
|
|
#include "encode.h"
|
|
#include "mem.h"
|
|
#include "net.h"
|
|
#include "option.h"
|
|
#include "pdu.h"
|
|
#include "prng.h"
|
|
#include "resource.h"
|
|
#include "str.h"
|
|
#include "subscribe.h"
|
|
#include "uri.h"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* COAP_H_ */
|