mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-13 03:40:40 +03:00
Create a new include/coap2/coap_resource_internal.h to hold all the information not available to applications. Makefile.am: Include coap_resource_internal.h in EXTRA_DIST. Remove functions no longer visible from CTAGS_IGNORE. examples/coap-rd.c: examples/contiki/server.c: examples/etsi_iot_01.c: tests/test_wellknown.c Replace direct access to coap_resource_t variables with functions as appropriate. include/coap2/resource.h: include/coap2/subscribe.h: include/coap2/coap_resource_internal.h: (New) include/coap2/coap_subscribe_internal.h: Move coap_resource_t, coap_addr_t, non API #defines and non API functions from resource.h into coap_resource_internal.h, coap_subscribe_internal.h and subscribe.h. Replace inline functions accessing coap_resource_t with actual function definitions. Add new functions coap_resource_release_userdata_handler() and coap_attr_get_value(). include/coap2/block.h: Use coap_resource_t typedef. include/coap2/coap_forward_decls.h: Include coap_resource_t and coap_addr_t typedefs. Also typedef coap_context_t to get rid of #include circular requirements. include/coap2/coap_internal.h: win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: Include coap_resource_internal.h. include/coap2/net.h: Remove "typedef struct coap_context_t" and do this in coap_forward_decls.h. src/resource.c: Update with the replaced inline functions. Add in the new functions coap_resource_release_userdata_handler() and coap_attr_get_value(). libcoap-2.map: libcoap-2.sym: Update with new function visibility. man/Makefile.am: man/coap_attribute.txt.in: man/coap_observe.txt.in: man/coap_resource.txt.in: Update with the new coap_resource_t and coap_attr_t usage.
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* coap_internal.h -- Structures, Enums & Functions that are not exposed to
|
|
* application programming
|
|
*
|
|
* Copyright (C) 2019-2021 Jon Shallow <supjps-libcoap@jpshallow.com>
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see README for terms
|
|
* of use.
|
|
*/
|
|
|
|
/*
|
|
* All libcoap library files should include this file which then pulls in all
|
|
* of the other appropriate header files.
|
|
*
|
|
* Note: This file should never be included in application code (with the
|
|
* possible exception of internal test suites).
|
|
*/
|
|
|
|
/**
|
|
* @file coap_internal.h
|
|
* @brief Pulls together all the internal only header files
|
|
*/
|
|
|
|
#ifndef COAP_INTERNAL_H_
|
|
#define COAP_INTERNAL_H_
|
|
|
|
#include "coap_config.h"
|
|
|
|
/*
|
|
* Correctly set up assert() based on NDEBUG for libcoap
|
|
*/
|
|
#if defined(HAVE_ASSERT_H) && !defined(assert)
|
|
# include <assert.h>
|
|
#endif
|
|
|
|
#include "coap.h"
|
|
|
|
/*
|
|
* Include all the header files that are for internal use only.
|
|
*/
|
|
|
|
/* Not defined in coap.h - internal usage .h files */
|
|
#include "utlist.h"
|
|
#include "uthash.h"
|
|
#include "coap_hashkey.h"
|
|
#include "coap_mutex.h"
|
|
|
|
/* Specifically defined internal .h files */
|
|
#include "coap_asn1_internal.h"
|
|
#include "coap_block_internal.h"
|
|
#include "coap_cache_internal.h"
|
|
#include "coap_session_internal.h"
|
|
#include "coap_resource_internal.h"
|
|
#include "coap_subscribe_internal.h"
|
|
#include "coap_tcp_internal.h"
|
|
|
|
#endif /* COAP_INTERNAL_H_ */
|