|
libubox
C utility functions for OpenWrt.
|
Go to the source code of this file.
Data Structures | |
| struct | safe_list |
Macros | |
| #define | INIT_SAFE_LIST(_head) |
| #define | SAFE_LIST_INIT(_name) { LIST_HEAD_INIT(_name.list), NULL } |
| #define | SAFE_LIST(_name) struct safe_list _name = SAFE_LIST_INIT(_name) |
Functions | |
| int | safe_list_for_each (struct safe_list *list, int(*cb)(void *ctx, struct safe_list *list), void *ctx) |
| void | safe_list_add (struct safe_list *list, struct safe_list *head) |
| void | safe_list_add_first (struct safe_list *list, struct safe_list *head) |
| void | safe_list_del (struct safe_list *list) |
| static bool | safe_list_empty (struct safe_list *head) |
| #define INIT_SAFE_LIST | ( | _head | ) |
Definition at line 48 of file safe_list.h.
| #define SAFE_LIST | ( | _name | ) | struct safe_list _name = SAFE_LIST_INIT(_name) |
Definition at line 55 of file safe_list.h.
| #define SAFE_LIST_INIT | ( | _name | ) | { LIST_HEAD_INIT(_name.list), NULL } |
Definition at line 54 of file safe_list.h.
Definition at line 83 of file safe_list.c.


Definition at line 89 of file safe_list.c.


| void safe_list_del | ( | struct safe_list * | list | ) |
Definition at line 95 of file safe_list.c.


|
inlinestatic |
Definition at line 57 of file safe_list.h.
| int safe_list_for_each | ( | struct safe_list * | list, |
| int(*)(void *ctx, struct safe_list *list) | cb, | ||
| void * | ctx | ||
| ) |
Definition at line 62 of file safe_list.c.

