mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-17 21:39:04 +03:00
Some of the Zephyr include files need to be C++, not C based. The 'extern "C"' wrapper in include/coap3/coap.h means that all #include are treated as being C. Remove 'extern "C"' wrapper from include/coap3/coap.h and add wrapper to include files after #include and before any function / structure definitions. Add in a C++ build test for CI.
48 lines
1009 B
C
48 lines
1009 B
C
/* coap_riot.h -- RIOT-specific definitions for libcoap
|
|
*
|
|
* Copyright (C) 2019-2025 Olaf Bergmann <bergmann@tzi.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* This file is part of the CoAP library libcoap. Please see
|
|
* README for terms of use.
|
|
*/
|
|
|
|
/**
|
|
* @file coap_riot.h
|
|
* @brief RIOT-specific definitions for libcoap
|
|
*/
|
|
|
|
#ifndef COAP_RIOT_H_
|
|
#define COAP_RIOT_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef LIBCOAP_MSG_QUEUE_SIZE
|
|
/**
|
|
* Size of the queue for passing messages between the network
|
|
* interface and the coap stack. */
|
|
#define LIBCOAP_MSG_QUEUE_SIZE (32U)
|
|
#endif /* LIBCOAP_MSG_QUEUE_SIZE */
|
|
|
|
#ifndef LIBCOAP_MAX_SOCKETS
|
|
/**
|
|
* Maximum number of sockets that are simultaneously considered for
|
|
* reading or writing. */
|
|
#define LIBCOAP_MAX_SOCKETS (16U)
|
|
#endif /* LIBCOAP_MAX_SOCKETS */
|
|
|
|
/**
|
|
* This function must be called in the RIOT CoAP thread for
|
|
* RIOT-specific initialization.
|
|
*/
|
|
void coap_riot_startup(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* COAP_RIOT_H_ */
|