list.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dl_list

Defines

#define dl_list_entry(item, type, member)   ((type *) ((char *) item - offsetof(type, member)))
#define dl_list_first(list, type, member)
#define dl_list_for_each(item, list, type, member)
#define dl_list_for_each_safe(item, n, list, type, member)
#define offsetof(type, member)   ((long) &((type *) 0)->member)

Functions

static void dl_list_add (struct dl_list *list, struct dl_list *item)
static void dl_list_add_tail (struct dl_list *list, struct dl_list *item)
static void dl_list_del (struct dl_list *item)
static int dl_list_empty (struct dl_list *list)
static void dl_list_init (struct dl_list *list)
static unsigned int dl_list_len (struct dl_list *list)

Define Documentation

#define dl_list_entry ( item,
type,
member   )     ((type *) ((char *) item - offsetof(type, member)))

Definition at line 71 of file list.h.

#define dl_list_first ( list,
type,
member   ) 
Value:
(dl_list_empty((list)) ? NULL : \
         dl_list_entry((list)->next, type, member))

Definition at line 74 of file list.h.

#define dl_list_for_each ( item,
list,
type,
member   ) 
Value:
for (item = dl_list_entry((list)->next, type, member); \
             &item->member != (list); \
             item = dl_list_entry(item->member.next, type, member))

Definition at line 78 of file list.h.

#define dl_list_for_each_safe ( item,
n,
list,
type,
member   ) 
Value:
for (item = dl_list_entry((list)->next, type, member), \
                     n = dl_list_entry(item->member.next, type, member); \
             &item->member != (list); \
             item = n, n = dl_list_entry(n->member.next, type, member))

Definition at line 83 of file list.h.

#define offsetof ( type,
member   )     ((long) &((type *) 0)->member)

Definition at line 68 of file list.h.


Function Documentation

static void dl_list_add ( struct dl_list list,
struct dl_list item 
) [inline, static]

Definition at line 32 of file list.h.

static void dl_list_add_tail ( struct dl_list list,
struct dl_list item 
) [inline, static]

Definition at line 40 of file list.h.

static void dl_list_del ( struct dl_list item  )  [inline, static]

Definition at line 45 of file list.h.

static int dl_list_empty ( struct dl_list list  )  [inline, static]

Definition at line 53 of file list.h.

static void dl_list_init ( struct dl_list list  )  [inline, static]

Definition at line 26 of file list.h.

static unsigned int dl_list_len ( struct dl_list list  )  [inline, static]

Definition at line 58 of file list.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:02:17 2013