Struct llist
Defined in File llist.h
Struct Documentation
-
struct llist
Linked list data structure.
Public Members
-
int (*cmpe)(const void *const e1, const void *const e2)
For comparing two elements. Can be NULL.
-
void (*printe)(const void *e)
-
struct llist_space_mgmt space
For printing an element. Can be NULL.
-
size_t current
-
int max_elts
number of nodes currently in the list.
-
size_t elt_size
Maximum # of allowed elements. -1 = no upper limit.
-
struct llist_node *first
If true, list is currently sorted.
-
struct llist_node *last
First node in the list (for easy prepending)
-
struct ds_iterator iter
Last node in the list (for easy appending)
-
uint32_t flags
iterator
Configuration flags. Valid flags are:
All other flags are ignored.
-
int (*cmpe)(const void *const e1, const void *const e2)