Go to the documentation of this file.
9 #ifndef _GENERIC_LIST_H_
10 #define _GENERIC_LIST_H_
29 #ifndef GENERIC_LIST_LIGHT
30 #define GENERIC_LIST_LIGHT (0)
56 #if (defined(GENERIC_LIST_LIGHT) && (GENERIC_LIST_LIGHT > 0U))
81 #if defined(__cplusplus)
199 #if defined(__cplusplus)
struct list_element_tag * next
uint32_t LIST_GetSize(list_handle_t list)
Gets the current size of a list.
void LIST_Init(list_handle_t list, uint32_t max)
Initialize the list.
enum _list_status list_status_t
The list status.
struct list_element_tag list_element_t
The list element.
#define MAKE_STATUS(group, code)
Construct a status code value from a group and code number.
list_element_handle_t LIST_GetHead(list_handle_t list)
Gets head element handle.
list_handle_t LIST_GetList(list_element_handle_t element)
Gets the list that contains the given element.
list_status_t LIST_RemoveElement(list_element_handle_t element)
Unlinks an element from its list.
list_status_t LIST_AddTail(list_handle_t list, list_element_handle_t element)
Links element to the tail of the list.
struct list_element_tag * tail
list_element_handle_t LIST_GetPrev(list_element_handle_t element)
Gets previous element handle for given element handle.
struct list_label * list_handle_t
struct list_element_tag * head
list_status_t LIST_AddHead(list_handle_t list, list_element_handle_t element)
Links element to the head of the list.
struct list_element_tag * list_element_handle_t
struct list_element_tag * prev
list_element_handle_t LIST_RemoveHead(list_handle_t list)
Unlinks element from the head of the list.
_list_status
The list status.
struct list_label list_label_t
The list structure.
uint32_t LIST_GetAvailableSize(list_handle_t list)
Gets the number of free places in the list.
list_element_handle_t LIST_GetNext(list_element_handle_t element)
Gets next element handle for given element handle.
list_status_t LIST_AddPrevElement(list_element_handle_t element, list_element_handle_t newElement)
Links an element in the previous position relative to a given member of a list.