1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 10:03:50 +01:00

coap: deprecate COAP_CT_ content type defines

COAP_CT_ style defines for the content types are deprecated in favour of
COAP_FORMAT_ style defines. COAP_FORMAT_ is expanded to include any
missing content type that was available with COAP_CT_.
This commit is contained in:
Koen Zandberg 2018-10-03 21:27:31 +02:00
parent 726ebf3dad
commit 8ee2bc5ffb

View File

@ -123,6 +123,8 @@ extern "C" {
/** /**
* @name Content types * @name Content types
* @deprecated Deprecated in favour of [COAP_FORMAT_](@ref net_coap_format)
* style defines
* @{ * @{
*/ */
#define COAP_CT_LINK_FORMAT (40) #define COAP_CT_LINK_FORMAT (40)
@ -134,11 +136,14 @@ extern "C" {
/** /**
* @name Content-Format option codes * @name Content-Format option codes
* @anchor net_coap_format
* @{ * @{
*/ */
#define COAP_FORMAT_TEXT (0) #define COAP_FORMAT_TEXT (0)
#define COAP_FORMAT_LINK (40) #define COAP_FORMAT_LINK (40)
#define COAP_FORMAT_XML (41)
#define COAP_FORMAT_OCTET (42) #define COAP_FORMAT_OCTET (42)
#define COAP_FORMAT_EXI (47)
#define COAP_FORMAT_JSON (50) #define COAP_FORMAT_JSON (50)
#define COAP_FORMAT_CBOR (60) #define COAP_FORMAT_CBOR (60)
/** @} */ /** @} */