/space/home/slher/rel/Beken/v6_4_5/macsw/modules/common/src/co_list.c File Reference

Copyright (C) RivieraWaves 2011-2019. More...

#include <string.h>
#include "co_list.h"
#include "dbg_assert.h"

Go to the source code of this file.

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_hdrco_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.
uint32_t co_list_cnt (const struct co_list *const list)
 Return the number of element of 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.

Detailed Description

Copyright (C) RivieraWaves 2011-2019.

List management functions

Definition in file co_list.c.


Generated on 14 Jan 2020 for Ceva-RW WLAN FullMAC SW documentation by  doxygen 1.6.1