Classes | Defines | Functions
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)

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.


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.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:38