From 8ee2bc5ffb062ae72608368a29c5fe530955af3c Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Wed, 3 Oct 2018 21:27:31 +0200 Subject: [PATCH] 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_. --- sys/include/net/coap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/include/net/coap.h b/sys/include/net/coap.h index 403dddbabf..23a4db50bd 100644 --- a/sys/include/net/coap.h +++ b/sys/include/net/coap.h @@ -123,6 +123,8 @@ extern "C" { /** * @name Content types + * @deprecated Deprecated in favour of [COAP_FORMAT_](@ref net_coap_format) + * style defines * @{ */ #define COAP_CT_LINK_FORMAT (40) @@ -134,11 +136,14 @@ extern "C" { /** * @name Content-Format option codes + * @anchor net_coap_format * @{ */ #define COAP_FORMAT_TEXT (0) #define COAP_FORMAT_LINK (40) +#define COAP_FORMAT_XML (41) #define COAP_FORMAT_OCTET (42) +#define COAP_FORMAT_EXI (47) #define COAP_FORMAT_JSON (50) #define COAP_FORMAT_CBOR (60) /** @} */