mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-17 05:19:05 +03:00
Add sorting of optlist
This commit is contained in:
1 parent
d2b61c2e49
commit
f79eaba9b9
6 files changed
+39
-2
No files matched your search
@@ -376,6 +376,16 @@ coap_optlist_t *coap_new_optlist(uint16_t number,
|
||||
*/
|
||||
int coap_add_optlist_pdu(coap_pdu_t *pdu, coap_optlist_t **optlist_chain);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Sorts the optlist chain
|
||||
*
|
||||
* @param options The optlist chain to sort
|
||||
*
|
||||
* @return @c 1 if sorted successfully, @c 0 otherwise.
|
||||
*/
|
||||
int coap_sort_optlist(coap_optlist_t **options);
|
||||
|
||||
/**
|
||||
* Adds @p optlist to the given @p optlist_chain. The optlist_chain variable
|
||||
* be set to NULL before the initial call to coap_insert_optlist().
|
||||
|
||||
Reference in new issue
Block a user