libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Functions
coap_list.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "debug.h"
#include "mem.h"
#include "coap_list.h"

Go to the source code of this file.

Functions

int coap_insert (coap_list_t **queue, coap_list_t *node, int(*order)(void *, void *node))
 
int coap_delete (coap_list_t *node)
 
void coap_delete_list (coap_list_t *queue)
 
coap_list_tcoap_new_listnode (void *data, void(*delete_func)(void *))
 Creates a new list node and adds the given data object. More...
 

Function Documentation

int coap_delete ( coap_list_t node)

Definition at line 52 of file coap_list.c.

void coap_delete_list ( coap_list_t queue)

Definition at line 65 of file coap_list.c.

int coap_insert ( coap_list_t **  queue,
coap_list_t node,
int(*)(void *, void *node)  order 
)

Definition at line 19 of file coap_list.c.

coap_list_t* coap_new_listnode ( void *  data,
void(*)(void *)  delete_func 
)

Creates a new list node and adds the given data object.

The memory allocated by data will be released by coap_delete() with the new node. Returns the new list node.

Definition at line 74 of file coap_list.c.