Update mg_coap_add_option doc

PUBLISHED_FROM=cded8f36e2833e7c256ba6cbca0ebf1f6012dee7
This commit is contained in:
Alexander Alashkin 2016-11-03 18:11:32 +01:00 committed by Cesanta Bot
parent 0dcb50d39c
commit cd778396ff
2 changed files with 3 additions and 1 deletions

View File

@ -9,5 +9,6 @@ signature: |
---
Adds a new option to mg_coap_message structure.
Returns pointer to the newly created option.
Returns pointer to the newly created option.
Note: options must be freed by using mg_coap_free_options

View File

@ -5328,6 +5328,7 @@ int mg_set_protocol_coap(struct mg_connection *nc);
/*
* Adds a new option to mg_coap_message structure.
* Returns pointer to the newly created option.
* Note: options must be freed by using mg_coap_free_options
*/
struct mg_coap_option *mg_coap_add_option(struct mg_coap_message *cm,
uint32_t number, char *value,