Classes | Macros | Typedefs | Enumerations | Functions
generic_list.h File Reference
#include "fsl_common.h"
Include dependency graph for generic_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  list_element_tag
 The list element. More...
 
struct  list_label
 The list structure. More...
 

Macros

#define GENERIC_LIST_LIGHT   (0)
 

Typedefs

typedef struct list_element_taglist_element_handle_t
 
typedef struct list_element_tag list_element_t
 The list element. More...
 
typedef struct list_labellist_handle_t
 
typedef struct list_label list_label_t
 The list structure. More...
 
typedef enum _list_status list_status_t
 The list status. More...
 

Enumerations

enum  _list_status {
  kLIST_Ok = kStatus_Success, kLIST_DuplicateError = MAKE_STATUS(kStatusGroup_LIST, 1), kLIST_Full = MAKE_STATUS(kStatusGroup_LIST, 2), kLIST_Empty = MAKE_STATUS(kStatusGroup_LIST, 3),
  kLIST_OrphanElement = MAKE_STATUS(kStatusGroup_LIST, 4), kLIST_NotSupport = MAKE_STATUS(kStatusGroup_LIST, 5)
}
 The list status. More...
 

Functions

list_status_t LIST_AddHead (list_handle_t list, list_element_handle_t element)
 Links element to the head of the list. More...
 
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. More...
 
list_status_t LIST_AddTail (list_handle_t list, list_element_handle_t element)
 Links element to the tail of the list. More...
 
uint32_t LIST_GetAvailableSize (list_handle_t list)
 Gets the number of free places in the list. More...
 
list_element_handle_t LIST_GetHead (list_handle_t list)
 Gets head element handle. More...
 
list_handle_t LIST_GetList (list_element_handle_t element)
 Gets the list that contains the given element. More...
 
list_element_handle_t LIST_GetNext (list_element_handle_t element)
 Gets next element handle for given element handle. More...
 
list_element_handle_t LIST_GetPrev (list_element_handle_t element)
 Gets previous element handle for given element handle. More...
 
uint32_t LIST_GetSize (list_handle_t list)
 Gets the current size of a list. More...
 
void LIST_Init (list_handle_t list, uint32_t max)
 Initialize the list. More...
 
list_status_t LIST_RemoveElement (list_element_handle_t element)
 Unlinks an element from its list. More...
 
list_element_handle_t LIST_RemoveHead (list_handle_t list)
 Unlinks element from the head of the list. More...
 


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57