Doubly linked list data structure
More...
|
#define | SPA_LIST_INIT(list) |
|
#define | spa_list_is_empty(l) |
|
#define | spa_list_first(head, type, member) |
|
#define | spa_list_last(head, type, member) |
|
#define | spa_list_append(list, item) |
|
#define | spa_list_prepend(list, item) |
|
#define | spa_list_is_end(pos, head, member) |
|
#define | spa_list_next(pos, member) |
|
#define | spa_list_prev(pos, member) |
|
#define | spa_list_consume(pos, head, member) |
|
#define | spa_list_for_each_next(pos, head, curr, member) |
|
#define | spa_list_for_each_prev(pos, head, curr, member) |
|
#define | spa_list_for_each(pos, head, member) |
|
#define | spa_list_for_each_reverse(pos, head, member) |
|
#define | spa_list_for_each_safe_next(pos, tmp, head, curr, member) |
|
#define | spa_list_for_each_safe_prev(pos, tmp, head, curr, member) |
|
#define | spa_list_for_each_safe(pos, tmp, head, member) |
|
#define | spa_list_for_each_safe_reverse(pos, tmp, head, member) |
|
#define | spa_list_cursor_start(cursor, head, member) |
|
#define | spa_list_for_each_cursor(pos, cursor, head, member) |
|
#define | spa_list_cursor_end(cursor, member) |
|
Doubly linked list data structure
◆ SPA_LIST_INIT
#define SPA_LIST_INIT |
( |
| list | ) |
|
◆ spa_list_is_empty
#define spa_list_is_empty |
( |
| l | ) |
|
◆ spa_list_first
#define spa_list_first |
( |
| head, |
|
|
| type, |
|
|
| member ) |
Value:
#define SPA_CONTAINER_OF(p, t, m)
Definition defs.h:235
- Examples
- export-source.c.
◆ spa_list_last
#define spa_list_last |
( |
| head, |
|
|
| type, |
|
|
| member ) |
◆ spa_list_append
#define spa_list_append |
( |
| list, |
|
|
| item ) |
◆ spa_list_prepend
#define spa_list_prepend |
( |
| list, |
|
|
| item ) |
◆ spa_list_is_end
#define spa_list_is_end |
( |
| pos, |
|
|
| head, |
|
|
| member ) |
Value: (&(pos)->member == (head))
◆ spa_list_next
#define spa_list_next |
( |
| pos, |
|
|
| member ) |
◆ spa_list_prev
#define spa_list_prev |
( |
| pos, |
|
|
| member ) |
◆ spa_list_consume
#define spa_list_consume |
( |
| pos, |
|
|
| head, |
|
|
| member ) |
◆ spa_list_for_each_next
#define spa_list_for_each_next |
( |
| pos, |
|
|
| head, |
|
|
| curr, |
|
|
| member ) |
◆ spa_list_for_each_prev
#define spa_list_for_each_prev |
( |
| pos, |
|
|
| head, |
|
|
| curr, |
|
|
| member ) |
◆ spa_list_for_each
#define spa_list_for_each |
( |
| pos, |
|
|
| head, |
|
|
| member ) |
Value:
#define spa_list_for_each_next(pos, head, curr, member)
Definition list.h:97
- Examples
- bluez-session.c.
◆ spa_list_for_each_reverse
#define spa_list_for_each_reverse |
( |
| pos, |
|
|
| head, |
|
|
| member ) |
Value:
#define spa_list_for_each_prev(pos, head, curr, member)
Definition list.h:102
◆ spa_list_for_each_safe_next
#define spa_list_for_each_safe_next |
( |
| pos, |
|
|
| tmp, |
|
|
| head, |
|
|
| curr, |
|
|
| member ) |
◆ spa_list_for_each_safe_prev
#define spa_list_for_each_safe_prev |
( |
| pos, |
|
|
| tmp, |
|
|
| head, |
|
|
| curr, |
|
|
| member ) |
◆ spa_list_for_each_safe
#define spa_list_for_each_safe |
( |
| pos, |
|
|
| tmp, |
|
|
| head, |
|
|
| member ) |
Value:
#define spa_list_for_each_safe_next(pos, tmp, head, curr, member)
Definition list.h:113
◆ spa_list_for_each_safe_reverse
#define spa_list_for_each_safe_reverse |
( |
| pos, |
|
|
| tmp, |
|
|
| head, |
|
|
| member ) |
Value:
#define spa_list_for_each_safe_prev(pos, tmp, head, curr, member)
Definition list.h:119
◆ spa_list_cursor_start
#define spa_list_cursor_start |
( |
| cursor, |
|
|
| head, |
|
|
| member ) |
Value:
#define spa_list_prepend(list, item)
Definition list.h:80
◆ spa_list_for_each_cursor
#define spa_list_for_each_cursor |
( |
| pos, |
|
|
| cursor, |
|
|
| head, |
|
|
| member ) |
◆ spa_list_cursor_end
#define spa_list_cursor_end |
( |
| cursor, |
|
|
| member ) |
Value:
static void spa_list_remove(struct spa_list *elem)
Definition list.h:65
◆ spa_list_init()
static void spa_list_init |
( |
struct spa_list * | list | ) |
|
|
inlinestatic |
◆ spa_list_is_initialized()
static int spa_list_is_initialized |
( |
struct spa_list * | list | ) |
|
|
inlinestatic |
◆ spa_list_insert()
◆ spa_list_insert_list()
static void spa_list_insert_list |
( |
struct spa_list * | list, |
|
|
struct spa_list * | other ) |
|
inlinestatic |
◆ spa_list_remove()
static void spa_list_remove |
( |
struct spa_list * | elem | ) |
|
|
inlinestatic |