Lines Matching refs:list_t
12 typedef struct list_t { struct
18 } list_t; argument
20 static list_node_t *list_free_node_(list_t *list, list_node_t *node);
24 list_t *list_new_internal(list_free_cb callback, const allocator_t *zeroed_allocator) { in list_new_internal()
25 list_t *list = (list_t *)zeroed_allocator->alloc(sizeof(list_t)); in list_new_internal()
34 list_t *list_new(list_free_cb callback) { in list_new()
38 void list_free(list_t *list) { in list_free()
46 bool list_is_empty(const list_t *list) { in list_is_empty()
51 bool list_contains(const list_t *list, const void *data) { in list_contains()
63 size_t list_length(const list_t *list) { in list_length()
68 void *list_front(const list_t *list) { in list_front()
75 void *list_back(const list_t *list) { in list_back()
82 bool list_insert_after(list_t *list, list_node_t *prev_node, void *data) { in list_insert_after()
100 bool list_prepend(list_t *list, void *data) { in list_prepend()
116 bool list_append(list_t *list, void *data) { in list_append()
136 bool list_remove(list_t *list, void *data) { in list_remove()
162 void list_clear(list_t *list) { in list_clear()
171 void list_foreach(const list_t *list, list_iter_cb callback) { in list_foreach()
182 list_node_t *list_begin(const list_t *list) { in list_begin()
187 list_node_t *list_end(UNUSED_ATTR const list_t *list) { in list_end()
202 static list_node_t *list_free_node_(list_t *list, list_node_t *node) { in list_free_node_()