Files
libcoap/include/coap3/coap_uri_internal.h
T
Jon Shallow ea01661faf Zephyr: Support C++ builds
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.
2025-08-21 12:17:41 +01:00

57 lines
1.1 KiB
C

/*
* coap_uri_internal.h -- URI functions for libcoap
*
* Copyright (C) 2019--2025 Olaf Bergmann <bergmann@tzi.org> and others
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see README for terms
* of use.
*/
/**
* @file coap_uri_internal.h
* @brief CoAP URI internal information
*/
#ifndef COAP_URI_INTERNAL_H_
#define COAP_URI_INTERNAL_H_
#include "coap_internal.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @ingroup internal_api
* @defgroup uri URI Support
* Internal API for handling CoAP URIs
* @{
*/
typedef struct {
const char *name; /**< scheme name */
uint16_t port; /**< default scheme port */
uint16_t proxy_only; /**< set if proxy support only */
coap_uri_scheme_t scheme; /**< scheme */
} coap_uri_info_t;
extern coap_uri_info_t coap_uri_scheme[COAP_URI_SCHEME_LAST];
/**
* replace any % hex definitions with the actual character.
*
* @param optlist The optlist entry to modify if % hex definitions.
*
*/
void coap_replace_percents(coap_optlist_t *optlist);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* COAP_URI_INTERNAL_H_ */