36 #ifndef __METAL_LIST__H__ 37 #define __METAL_LIST__H__ 52 #define METAL_DECLARE_LIST(name) \ 53 struct metal_list name = { .next = &name, .prev = &name } 64 new_node->
next = node;
72 new_node->
prev = node;
92 return list->
next == list;
107 #define metal_list_for_each(list, node) \ 108 for ((node) = (list)->next; \ 110 (node) = (node)->next)
static void metal_list_add_before(struct metal_list *node, struct metal_list *new_node)
Definition: list.h:60
static struct metal_list * metal_list_first(struct metal_list *list)
Definition: list.h:102
static void metal_list_add_tail(struct metal_list *list, struct metal_list *node)
Definition: list.h:84
static void metal_list_init(struct metal_list *list)
Definition: list.h:55
static int metal_list_is_empty(struct metal_list *list)
Definition: list.h:90
static void metal_list_del(struct metal_list *node)
Definition: list.h:95
static void metal_list_add_head(struct metal_list *list, struct metal_list *node)
Definition: list.h:78
static void metal_list_add_after(struct metal_list *node, struct metal_list *new_node)
Definition: list.h:69