From 02195e13a656c6b7ebd3757eee5dcf173c17066c Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Fri, 27 Apr 2018 21:36:49 +0100 Subject: [PATCH] examples/coap_list.[ch]: Document that these files are DEPRECATED /* * examples/coap_list.[ch] are DEPRECATED. You should be using * struct coap_optlist_t instead with the following functions which are a part * of libcoap. * * coap_new_optlist() * coap_insert_optlist() * coap_delete_optlist() * coap_add_optlist_pdu() * * See 'man coap_pdu_setup' for further information. * * examples/coap_list.[ch] files will be removed in a future release * They are left here to support building backward compatability of old versions * of coap-client */ --- examples/coap_list.c | 17 +++++++++++++++++ examples/coap_list.h | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/examples/coap_list.c b/examples/coap_list.c index 869858fe..fc816220 100644 --- a/examples/coap_list.c +++ b/examples/coap_list.c @@ -8,6 +8,23 @@ * use. */ +/* + * examples/coap_list.[ch] are DEPRECATED. You should be using + * struct coap_optlist_t instead with the following functions which are a part + * of libcoap. + * + * coap_new_optlist() + * coap_insert_optlist() + * coap_delete_optlist() + * coap_add_optlist_pdu() + * + * See 'man coap_pdu_setup' for further information. + * + * examples/coap_list.[ch] files will be removed in a future release + * They are left here to support building backward compatability of old versions + * of coap-client + */ + /* #include "coap_config.h" */ #include diff --git a/examples/coap_list.h b/examples/coap_list.h index 032007d1..32b7ea8b 100644 --- a/examples/coap_list.h +++ b/examples/coap_list.h @@ -8,6 +8,23 @@ * use. */ +/* + * examples/coap_list.[ch] are DEPRECATED. You should be using + * struct coap_optlist_t instead with the following functions which are a part + * of libcoap. + * + * coap_new_optlist() + * coap_insert_optlist() + * coap_delete_optlist() + * coap_add_optlist_pdu() + * + * See 'man coap_pdu_setup' for further information. + * + * examples/coap_list.[ch] files will be removed in a future release + * They are left here to support building backward compatability of old versions + * of coap-client + */ + #ifndef _COAP_LIST_H_ #define _COAP_LIST_H_