coap.h: Remove need for different coap.h files for different OS

./autogen.sh and ./configure no longer need to be run prior to running
make for Contiki, LwIP or RIOT from the appropriate examples sub-directory.

scripts/fix_version.sh now handles updating coap.h for the different
LIBCOAP_ and PACKAGE_ definitions.
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2024-08-23 10:39:37 +01:00
1 parent 8899063a4a
commit e220c371be
15 files changed
+37 -211

No files matched your search

@@ -1,5 +1,5 @@
/*
* coap.h -- main header file for CoAP stack of libcoap (Windows)
* coap.h -- main header file for CoAP stack of libcoap
*
* Copyright (C) 2010-2012,2015-2024 Olaf Bergmann <bergmann@tzi.org>
* 2015 Carsten Schoenert <c.schoenert@t-online.de>
@@ -34,7 +34,7 @@
#define LIBCOAP_PACKAGE_VERSION "4.3.5rc3"
/* Define the numeric version identifier for libcoap */
#define LIBCOAP_VERSION (4003004U)
#define LIBCOAP_VERSION (4003004ULL)
#ifdef __cplusplus
extern "C" {
-74
View File
@@ -1,74 +0,0 @@
/*
* coap.h -- main header file for CoAP stack of libcoap
*
* Copyright (C) 2010-2012,2015-2024 Olaf Bergmann <bergmann@tzi.org>
* 2015 Carsten Schoenert <c.schoenert@t-online.de>
*
* 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 "@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@"
/* Define the numeric version identifier for libcoap */
#define LIBCOAP_VERSION (@LIBCOAP_VERSION@U)
#ifdef __cplusplus
extern "C" {
#endif
#include "coap@LIBCOAP_API_VERSION@/libcoap.h"
#include "coap@LIBCOAP_API_VERSION@/coap_forward_decls.h"
#include "coap@LIBCOAP_API_VERSION@/coap_address.h"
#include "coap@LIBCOAP_API_VERSION@/coap_async.h"
#include "coap@LIBCOAP_API_VERSION@/coap_block.h"
#include "coap@LIBCOAP_API_VERSION@/coap_cache.h"
#include "coap@LIBCOAP_API_VERSION@/coap_debug.h"
#include "coap@LIBCOAP_API_VERSION@/coap_dtls.h"
#include "coap@LIBCOAP_API_VERSION@/coap_encode.h"
#include "coap@LIBCOAP_API_VERSION@/coap_event.h"
#include "coap@LIBCOAP_API_VERSION@/coap_io.h"
#include "coap@LIBCOAP_API_VERSION@/coap_mem.h"
#include "coap@LIBCOAP_API_VERSION@/coap_net.h"
#include "coap@LIBCOAP_API_VERSION@/coap_option.h"
#include "coap@LIBCOAP_API_VERSION@/coap_oscore.h"
#include "coap@LIBCOAP_API_VERSION@/coap_pdu.h"
#include "coap@LIBCOAP_API_VERSION@/coap_prng.h"
#include "coap@LIBCOAP_API_VERSION@/coap_proxy.h"
#include "coap@LIBCOAP_API_VERSION@/coap_resource.h"
#include "coap@LIBCOAP_API_VERSION@/coap_str.h"
#include "coap@LIBCOAP_API_VERSION@/coap_subscribe.h"
#include "coap@LIBCOAP_API_VERSION@/coap_supported.h"
#include "coap@LIBCOAP_API_VERSION@/coap_time.h"
#include "coap@LIBCOAP_API_VERSION@/coap_uri.h"
#include "coap@LIBCOAP_API_VERSION@/coap_ws.h"
#ifdef __cplusplus
}
#endif
#endif /* COAP_H_ */
-74
View File
@@ -1,74 +0,0 @@
/*
* coap.h -- main header file for CoAP stack of libcoap (RIOT)
*
* Copyright (C) 2010-2012,2015-2024 Olaf Bergmann <bergmann@tzi.org>
* 2015 Carsten Schoenert <c.schoenert@t-online.de>
*
* 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.5rc3"
/* 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.5rc3"
/* Define the numeric version identifier for libcoap */
#define LIBCOAP_VERSION (4003004U)
#ifdef __cplusplus
extern "C" {
#endif
#include "libcoap.h"
#include "coap_forward_decls.h"
#include "coap_address.h"
#include "coap_async.h"
#include "coap_block.h"
#include "coap_cache.h"
#include "coap_debug.h"
#include "coap_dtls.h"
#include "coap_encode.h"
#include "coap_event.h"
#include "coap_io.h"
#include "coap_mem.h"
#include "coap_net.h"
#include "coap_option.h"
#include "coap_oscore.h"
#include "coap_pdu.h"
#include "coap_prng.h"
#include "coap_proxy.h"
#include "coap_resource.h"
#include "coap_str.h"
#include "coap_subscribe.h"
#include "coap_supported.h"
#include "coap_time.h"
#include "coap_uri.h"
#include "coap_ws.h"
#ifdef __cplusplus
}
#endif
#endif /* COAP_H_ */