libcoap  4.1.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs | Functions
t_list.h File Reference

Wrappers for list structures and functions. More...

#include "uthash.h"
#include "utlist.h"
Include dependency graph for t_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  list
 

Macros

#define LIST_CONCAT(s1, s2)   s1##s2
 
#define LIST_STRUCT(name)
 
#define LIST_STRUCT_INIT(struct_ptr, name)
 

Typedefs

typedef void ** list_t
 

Functions

static void * list_head (list_t the_list)
 
static void list_remove (list_t the_list, void *item)
 
static void list_add (list_t the_list, void *item)
 
static void list_push (list_t the_list, void *item)
 
static void * list_pop (list_t the_list)
 
static void list_insert (list_t the_list, void *previtem, void *newitem)
 
static void * list_item_next (void *item)
 

Detailed Description

Wrappers for list structures and functions.

Definition in file t_list.h.

Macro Definition Documentation

#define LIST_CONCAT (   s1,
  s2 
)    s1##s2

Definition at line 82 of file t_list.h.

#define LIST_STRUCT (   name)
Value:
void *LIST_CONCAT(name, _list); \
list_t name
void ** list_t
Definition: t_list.h:77
#define LIST_CONCAT(s1, s2)
Definition: t_list.h:82

Definition at line 84 of file t_list.h.

#define LIST_STRUCT_INIT (   struct_ptr,
  name 
)
Value:
{ \
(struct_ptr)->name = &((struct_ptr)->LIST_CONCAT(name,_list)); \
(struct_ptr)->LIST_CONCAT(name,_list) = NULL; \
}
#define LIST_CONCAT(s1, s2)
Definition: t_list.h:82

Definition at line 88 of file t_list.h.

Typedef Documentation

typedef void** list_t

Definition at line 77 of file t_list.h.

Function Documentation

static void list_add ( list_t  the_list,
void *  item 
)
inlinestatic

Definition at line 105 of file t_list.h.

Here is the call graph for this function:

static void* list_head ( list_t  the_list)
inlinestatic

Definition at line 94 of file t_list.h.

Here is the caller graph for this function:

static void list_insert ( list_t  the_list,
void *  previtem,
void *  newitem 
)
inlinestatic

Definition at line 126 of file t_list.h.

Here is the call graph for this function:

static void* list_item_next ( void *  item)
inlinestatic

Definition at line 136 of file t_list.h.

static void* list_pop ( list_t  the_list)
inlinestatic

Definition at line 116 of file t_list.h.

Here is the call graph for this function:

static void list_push ( list_t  the_list,
void *  item 
)
inlinestatic

Definition at line 111 of file t_list.h.

Here is the caller graph for this function:

static void list_remove ( list_t  the_list,
void *  item 
)
inlinestatic

Definition at line 99 of file t_list.h.

Here is the call graph for this function:

Here is the caller graph for this function: