mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 14:29:05 +03:00
This updates the initial work done for adding in cache support include/coap2/coap_cache.h: (new) include/coap2/coap_cache_internal.h: (new) src/coap_cache.c: (new) New files to support cache support. CMakeLists.txt: Makefile.amMakefile.am: Makefile.libcoap: configure.ac: examples/lwip/Makefile: include/coap2/coap.h.in: include/coap2/coap.h.windows: win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: Add in the new files. examples/client.c: Fix valgrind reported memory leak. examples/coap-server.c: Add in new example_data resource that uses the new caching logic. Update hnd_put() to use the new cache logic for BLOCK1 PUTs. include/coap2/coap_forward_decls.h: include/coap2/coap_internal.h: include/coap2/coap_session.h: include/coap2/net.h: Add in new cache support. libcoap-2.map: libcoap-2.sym: Include the new functions. man/Makefile.am: man/coap.txt.in: man/coap_cache.txt.in: (new) Update documentation. src/coap_io.c: Idle timeout cache entries. src/coap_session.c: Delete cache entry when session is deleted. src/net.c: Delete cache entries when context is freed off. src/coap_gnutls.c: src/coap_mbedtls.c: src/coap_notls.c: src/coap_openssl.c: src/coap_tinydtls.c: Add in SHA256 digest support.
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/*
|
|
* coap_internal.h -- Structures, Enums & Functions that are not exposed to
|
|
* application programming
|
|
*
|
|
* Copyright (C) 2019-2020 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_cache_internal.h"
|
|
#include "coap_session_internal.h"
|
|
#include "coap_subscribe_internal.h"
|
|
#include "coap_tcp_internal.h"
|
|
|
|
#endif /* COAP_INTERNAL_H_ */
|