Copyright (C) RivieraWaves 2011-2019. More...
#include "co_int.h"#include "co_bool.h"#include <stddef.h>#include "rwnx_config.h"#include "compiler.h"Go to the source code of this file.
Data Structures | |
| struct | co_list_hdr |
| structure of a list element header More... | |
| struct | co_list |
| structure of a list More... | |
Functions | |
| void | co_list_init (struct co_list *list) |
| Initialize a list to defaults values. | |
| void | co_list_pool_init (struct co_list *list, void *pool, size_t elmt_size, uint32_t elmt_cnt, void *default_value) |
| Initialize a pool to default values, and initialize the relative free list. | |
| void | co_list_push_back (struct co_list *list, struct co_list_hdr *list_hdr) |
| Add an element as last on the list. | |
| void | co_list_push_front (struct co_list *list, struct co_list_hdr *list_hdr) |
| Add an element as first on the list. | |
| struct co_list_hdr * | co_list_pop_front (struct co_list *list) |
| Extract the first element of the list. | |
| void | co_list_extract (struct co_list *list, struct co_list_hdr *list_hdr) |
| Search for a given element in the list, and extract it if found. | |
| bool | co_list_find (struct co_list *list, struct co_list_hdr *list_hdr) |
| Searched a given element in the list. | |
| void | co_list_insert (struct co_list *const list, struct co_list_hdr *const element, bool(*cmp)(struct co_list_hdr const *elementA, struct co_list_hdr const *elementB)) |
| Insert an element in a sorted list. | |
| void | co_list_insert_after (struct co_list *const list, struct co_list_hdr *const prev_element, struct co_list_hdr *const element) |
| Insert an element in a sorted list after the provided element. | |
| void | co_list_insert_before (struct co_list *const list, struct co_list_hdr *const next_element, struct co_list_hdr *const element) |
| Insert an element in a sorted list before the provided element. | |
| void | co_list_concat (struct co_list *list1, struct co_list *list2) |
| Concatenate two lists. | |
| void | co_list_remove (struct co_list *list, struct co_list_hdr *prev_element, struct co_list_hdr *element) |
| Remove the element in the list after the provided element. | |
| __INLINE bool | co_list_is_empty (const struct co_list *const list) |
| Test if the list is empty. | |
| uint32_t | co_list_cnt (const struct co_list *const list) |
| Return the number of element of the list. | |
| __INLINE struct co_list_hdr * | co_list_pick (const struct co_list *const list) |
| Pick the first element from the list without removing it. | |
| __INLINE struct co_list_hdr * | co_list_pick_last (const struct co_list *const list) |
| Pick the last element from the list without removing it. | |
| __INLINE struct co_list_hdr * | co_list_next (const struct co_list_hdr *const list_hdr) |
| Return following element of a list element. | |
Copyright (C) RivieraWaves 2011-2019.
Common list structures definitions
Definition in file co_list.h.
1.6.1