lv_ll.h
API reference for lv_ll.h
Handle linked lists. The nodes are dynamically allocated by the 'lv_mem' module.
Functions
misc/lv_ll.h:101function
lv_ll_get_head
Return with head node of the linked list
void * lv_ll_get_head(const lv_ll_t *ll_p)| Name | Type | Description |
|---|---|---|
ll_p | const lv_ll_t * | pointer to linked list |
Returns: void * — pointer to the head of 'll_p'
misc/lv_ll.h:108function
lv_ll_get_tail
Return with tail node of the linked list
void * lv_ll_get_tail(const lv_ll_t *ll_p)| Name | Type | Description |
|---|---|---|
ll_p | const lv_ll_t * | pointer to linked list |
Returns: void * — pointer to the tail of 'll_p'
misc/lv_ll.h:116function
lv_ll_get_next
Return with the pointer of the next node after 'n_act'
void * lv_ll_get_next(const lv_ll_t *ll_p, const void *n_act)| Name | Type | Description |
|---|---|---|
ll_p | const lv_ll_t * | pointer to linked list |
n_act | const void * | pointer a node |
Returns: void * — pointer to the next node
misc/lv_ll.h:124function
lv_ll_get_prev
Return with the pointer of the previous node after 'n_act'
void * lv_ll_get_prev(const lv_ll_t *ll_p, const void *n_act)| Name | Type | Description |
|---|---|---|
ll_p | const lv_ll_t * | pointer to linked list |
n_act | const void * | pointer a node |
Returns: void * — pointer to the previous node
misc/lv_ll.h:131function
lv_ll_get_len
Return the length of the linked list.
uint32_t lv_ll_get_len(const lv_ll_t *ll_p)| Name | Type | Description |
|---|---|---|
ll_p | const lv_ll_t * | pointer to linked list |
Returns: uint32_t — length of the linked list
Structs
struct
lv_ll_t
Description of a linked list
| Member | Type | Description |
|---|---|---|
n_size | uint32_t | |
head | lv_ll_node_t * | |
tail | lv_ll_node_t * |
Used by 17 functions
lv_vector_for_each_destroy_tasks— paramtask_listlv_ll_init— paramll_plv_ll_ins_head— paramll_plv_ll_ins_prev— paramll_plv_ll_ins_tail— paramll_plv_ll_remove— paramll_plv_ll_clear_custom— paramll_plv_ll_clear— paramll_plv_ll_chg_list— paramll_ori_plv_ll_chg_list— paramll_new_plv_ll_get_head— paramll_plv_ll_get_tail— paramll_plv_ll_get_next— paramll_plv_ll_get_prev— paramll_plv_ll_get_len— paramll_plv_ll_move_before— paramll_plv_ll_is_empty— paramll_p
Typedefs
misc/lv_ll.h:28typedef
lv_ll_node_t
typedef uint8_t lv_ll_node_tDummy type to make handling easier
Macros
misc/lv_ll.h:161macro
LV_LL_READ
#define LV_LL_READ(list, i) \
for(i = lv_ll_get_head(list); i != NULL; i = lv_ll_get_next(list, i))misc/lv_ll.h:163macro
LV_LL_READ_BACK
#define LV_LL_READ_BACK(list, i) \
for(i = lv_ll_get_tail(list); i != NULL; i = lv_ll_get_prev(list, i))Dependencies
How is this guide?
Last updated on