mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-10 19:00:40 +03:00
Makefile.am: include coap_tcp_internal.h in EXTRA_DIST libcoap-2.map libcoap-2.sym: Don't expose previously static coap_socket_format_errno(). src/coap_gnutls.c: src/coap_openssl.c: src/coap_tinydtls.c: Correct ENABLE_TCP (never defined) to !COAP_DISABLE_TCP. Conditionally compile in TLS code as appropriate. src/coap_io.c: Correct #endif description. src/coap_session.c: Conditionally compile in TLS code as appropriate. src/coap_tcp.c Merge in appropriate parts of https://github.com/obgm/libcoap/pull/396 and https://github.com/obgm/libcoap/pull/345 fixes. include/coap2/coap_tcp.h: include/coap2/coap_tcp_internal.h: Rename include/coap2/coap_tcp.h to include/coap2/coap_tcp_internal.h and remove reference to coap_tcp_is_supported(). include/coap2/coap.h.in: Remove reference to coap_tcp.h. coap_config.h.windows: Include #define COAP_DISABLE_TCP 0. include/coap2/coap.h.windows: Reorder #includes include/coap2/coap_internal.h: Add #include coap_tcp_internal.h include/coap2/coap_io.h: Add in definition of coap_tcp_is_supported(). win32/libcoap.vcxproj: win32/libcoap.vcxproj.filters: Include src/coap_tcp.c and include/coap2/coap_tcp_internal.h.
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/*
|
|
* coap_internal.h -- Structures, Enums & Functions that are not exposed to
|
|
* application programming
|
|
*
|
|
* Copyright (C) 2019 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_session_internal.h"
|
|
#include "coap_subscribe_internal.h"
|
|
#include "coap_tcp_internal.h"
|
|
|
|
#endif /* COAP_INTERNAL_H_ */
|