Commit Graph
5 Commits
Author SHA1 Message Date
Jon Shallow c7e9359f02 Make coap_encode_var_bytes() by replacing with coap_encode_var_safe()
Update code / examples / man pages with the updated function.

include/coap/libcoap.h:
Add in new define COAP_DEPRECATED to generate compiler warnings when used

include/coap/encode.h
New coap_encode_var_safe() function that includes the size of the output
buffer as a parameter.

Make coap_encode_var_bytes() a wrapper for coap_encode_var_safe() and
mark it as COAP_DEPRECATED for backwards compatability

src/encode.c:
New coap_encode_var_safe() function that includes the size of the output
buffer as a parameter.

examples/coap-server.c:
examples/contiki/server.c:
Make the ticks resource consistent in case
2018-06-05 09:41:58 +01:00
Jon Shallow 34dbf512b0 libcoap-2.{sym|map}: Add in coap_new_str_const() and coap_delete_str_const() 2018-05-25 16:38:08 +01:00
Olaf Bergmann 99fbe78a47 resource.h: get rid of -Winline warning
As gcc 7 complains that coap_register_handler() is too large to
be inlined automatically, the function definition now has been
moved to resource.c.

This change also updates the symbol mappings accordingly.
2018-05-18 13:40:05 +02:00
Jon Shallow 7c94b4497d libcoap-1.{map|sym}: Include new optlist functions 2018-05-17 18:45:39 +01:00
Jon Shallow fcf30a6afc libcoap-2.{map,sym}: Add in files 2018-04-13 08:43:37 +01:00