From d9f2a708a42bbc1b9b60b046579b9880e89ee63e Mon Sep 17 00:00:00 2001 From: wanghan985406 Date: Thu, 21 Dec 2023 08:01:25 +0000 Subject: [PATCH] add compile config for linux platform: coap.h and coap_config.h Signed-off-by: wanghan985406 --- include/coap3/coap.h | 75 ++++++++++++ include/coap3/coap_config.h | 233 ++++++++++++++++++++++++++++++++++++ 2 files changed, 308 insertions(+) create mode 100644 include/coap3/coap.h create mode 100644 include/coap3/coap_config.h diff --git a/include/coap3/coap.h b/include/coap3/coap.h new file mode 100644 index 0000000..7c2cff3 --- /dev/null +++ b/include/coap3/coap.h @@ -0,0 +1,75 @@ +/* + * coap.h -- main header file for CoAP stack of libcoap + * + * Copyright (C) 2010-2012,2015-2023 Olaf Bergmann + * 2015 Carsten Schoenert + * + * SPDX-License-Identifier: BSD-2-Clause + * + * This file is part of the CoAP library libcoap. Please see README for terms + * of use. + */ + +/** + * @file coap.h + * @brief Primary include file + */ + +#ifndef COAP_H_ +#define COAP_H_ + +/* Define the address where bug reports for libcoap should be sent. */ +#define LIBCOAP_PACKAGE_BUGREPORT "libcoap-developers@lists.sourceforge.net" + +/* Define the full name of libcoap. */ +#define LIBCOAP_PACKAGE_NAME "libcoap" + +/* Define the full name and version of libcoap. */ +#define LIBCOAP_PACKAGE_STRING "libcoap 4.3.4" + +/* Define the home page for libcoap. */ +#define LIBCOAP_PACKAGE_URL "https://libcoap.net/" + +/* Define the version of libcoap this file belongs to. */ +#define LIBCOAP_PACKAGE_VERSION "4.3.4" + +/* Define the numeric version identifier for libcoap */ +#define LIBCOAP_VERSION (4003004U) + +#ifdef __cplusplus +extern "C" { +#endif + +#include "coap3/libcoap.h" +#include "securec.h" +#include "coap3/coap_forward_decls.h" +#include "coap3/coap_address.h" +#include "coap3/coap_async.h" +#include "coap3/coap_block.h" +#include "coap3/coap_cache.h" +#include "coap3/coap_debug.h" +#include "coap3/coap_dtls.h" +#include "coap3/coap_encode.h" +#include "coap3/coap_event.h" +#include "coap3/coap_io.h" +#include "coap3/coap_internal.h" +#include "coap3/coap_layers_internal.h" +#include "coap3/coap_mem.h" +#include "coap3/coap_net.h" +#include "coap3/coap_netif_internal.h" +#include "coap3/coap_option.h" +#include "coap3/coap_oscore.h" +#include "coap3/coap_pdu.h" +#include "coap3/coap_prng.h" +#include "coap3/coap_resource.h" +#include "coap3/coap_str.h" +#include "coap3/coap_subscribe.h" +#include "coap3/coap_time.h" +#include "coap3/coap_uri.h" +#include "coap3/coap_ws.h" + +#ifdef __cplusplus +} +#endif + +#endif /* COAP_H_ */ diff --git a/include/coap3/coap_config.h b/include/coap3/coap_config.h new file mode 100644 index 0000000..9454543 --- /dev/null +++ b/include/coap3/coap_config.h @@ -0,0 +1,233 @@ +/* coap_config.h. Generated from coap_config.h.in by configure. */ +/* coap_config.h.in. Generated from configure.ac by autoheader. */ + +/* Define if building universal (internal helper macro) */ +/* #undef AC_APPLE_UNIVERSAL_BUILD */ + +/* Define to build support for Unix socket packets. */ +#define COAP_AF_UNIX_SUPPORT 1 + +/* Define to 1 to build with support for async separate responses. */ +/* #undef COAP_ASYNC_SUPPORT */ + +/* Define to 1 if libcoap supports client mode code. */ +#define COAP_CLIENT_SUPPORT 1 + +/* Define to 1 if the system has small stack size. */ +/* #undef COAP_CONSTRAINED_STACK */ + +/* Define to 1 to build without TCP support. */ +#define COAP_DISABLE_TCP 1 + +/* Define to 1 if the system has epoll support. */ +/* #undef COAP_EPOLL_SUPPORT */ + +/* Define to build support for IPv4 packets. */ +#define COAP_IPV4_SUPPORT 1 + +/* Define to build support for IPv6 packets. */ +#define COAP_IPV6_SUPPORT 1 + +/* Define to level if max logging level is not 8 */ +/* #undef COAP_MAX_LOGGING_LEVEL */ + +/* Define to 1 to build with OSCORE support. */ +/* #undef COAP_OSCORE_SUPPORT */ + +/* Define to 1 to build with Q-Block support. */ +/* #undef COAP_Q_BLOCK_SUPPORT */ + +/* Define to 1 if libcoap supports server mode code. */ +#define COAP_SERVER_SUPPORT 1 + +/* Define to 1 if the system has libgnutls28. */ +/* #undef COAP_WITH_LIBGNUTLS */ + +/* Define to 1 if the system has libmbedtls2.7.10. */ +/* #undef COAP_WITH_LIBMBEDTLS */ + +/* Define to 1 if the system has libssl1.1. */ +/* #undef COAP_WITH_LIBOPENSSL */ + +/* Define to 1 if the system has libtinydtls. */ +/* #undef COAP_WITH_LIBTINYDTLS */ + +/* Define to 1 to build support for persisting observes. */ +/* #undef COAP_WITH_OBSERVE_PERSIST */ + +/* Define to 1 to build with WebSockets support. */ +/* #undef COAP_WS_SUPPORT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ARPA_INET_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_ASSERT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if TinyDTLS has dtls_set_log_handler. */ +/* #undef HAVE_DTLS_SET_LOG_HANDLER */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if you have the `getaddrinfo' function. */ +#define HAVE_GETADDRINFO 1 + +/* Define to 1 if you have the `getrandom' function. */ +#define HAVE_GETRANDOM 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_IFADDRS_H 1 + +/* Define to 1 if you have the `if_nametoindex' function. */ +#define HAVE_IF_NAMETOINDEX 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if the system has libcunit. */ +/* #undef HAVE_LIBCUNIT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define to 1 if you have the `malloc' function. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NETDB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NETINET_IN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_NET_IF_H 1 + +/* Define to 1 if libcoap has no tls library support. */ +#define HAVE_NOTLS 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_PTHREAD_H 1 + +/* Define to 1 if you have the `pthread_mutex_lock' function. */ +#define HAVE_PTHREAD_MUTEX_LOCK 1 + +/* Define to 1 if you have the `random' function. */ +#define HAVE_RANDOM 1 + +/* Define to 1 if you have the `select' function. */ +#define HAVE_SELECT 1 + +/* Define to 1 if you have the `socket' function. */ +#define HAVE_SOCKET 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strnlen' function. */ +#define HAVE_STRNLEN 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if the system has the type `struct cmsghdr'. */ +/* #undef HAVE_STRUCT_CMSGHDR */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SOCKET_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WINSOCK2_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_WS2TCPIP_H */ + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Define to 1 if assertions should be disabled. */ +/* #undef NDEBUG */ + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "libcoap-developers@lists.sourceforge.net" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libcoap" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libcoap 4.3.4" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libcoap" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "https://libcoap.net/" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "4.3.4" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +/* # undef WORDS_BIGENDIAN */ +# endif +#endif + +/* Define this to 1 for ancillary data on MacOS */ +/* #undef __APPLE_USE_RFC_3542 */ + +/* Define to `unsigned int' if does not define. */ +/* #undef size_t */ + +/* Define to `int' if does not define. */ +/* #undef ssize_t */