struct leList leList
This struct represents a list.
struct leListNode leListNode
This struct represents a list node .
This struct represents a list node .
Definition: legato_list.h:72
Common macros and definitions used by Legato.
int32_t leList_PushFront(leList *list, void *)
Push value on front.
Definition: legato_list.c:66
int32_t leList_Remove(leList *list, void *val)
Remove item.
Definition: legato_list.c:285
leListNode * head
Definition: legato_list.h:96
int32_t leList_PopBack(leList *list)
Pop value from back.
int32_t leList_RemoveAt(leList *list, uint32_t idx)
Remove item at index.
Definition: legato_list.c:331
void * leList_Get(const leList *list, uint32_t idx)
Get a value from the list.
Definition: legato_list.c:181
int32_t leList_Create(leList *list)
Create a new list.
Definition: legato_list.c:31
int32_t leList_Find(const leList *list, void *val)
Find index of a value.
Definition: legato_list.c:200
This struct represents a list.
Definition: legato_list.h:94
void leList_Clear(leList *list)
Clear array.
Definition: legato_list.c:421
void leList_PopFront(leList *list)
Pop value from front.
Definition: legato_list.c:106
void leList_Destroy(leList *list)
Remove array.
Definition: legato_list.c:446
size_t size
Definition: legato_list.h:98
int32_t leList_Copy(leList *l, leList *r)
Copy list.
Definition: legato_list.c:373
leListNode * tail
Definition: legato_list.h:97
int32_t leList_Assign(leList *list, size_t idx, void *val)
Assignes a new pointer.
Definition: legato_list.c:44
void * val
Definition: legato_list.h:75
struct leListNode * next
Definition: legato_list.h:74
int32_t leList_PushBack(leList *list, void *val)
Push value on back.
Definition: legato_list.c:141
int32_t leList_InsertAt(leList *list, void *val, uint32_t idx)
Insert value at index.
Definition: legato_list.c:222