20 int (*order)(
void *,
void *node) ) {
22 if ( !queue || !node )
33 if ( order( node->data, q->
data ) < 0) {
43 }
while ( q && order( node->data, q->
data ) >= 0);
78 coap_log(LOG_CRIT,
"coap_new_listnode: malloc\n");
int coap_delete(coap_list_t *node)
int coap_insert(coap_list_t **queue, coap_list_t *node, int(*order)(void *, void *node))
void(* delete_func)(void *)
Callback function that is called from coap_delete to release additional memory allocated by data Set ...
struct coap_linkedlistnode * next
#define coap_malloc(size)
void coap_delete_list(coap_list_t *queue)
coap_list_t * coap_new_listnode(void *data, void(*delete_func)(void *))
Creates a new list node and adds the given data object.