Struct llist_params
Defined in File llist.h
Struct Documentation
-
struct llist_params
Parameters for llist.
Public Members
-
int (*cmpe)(const void *const e1, const void *const e2)
For comparing elements. If NULL, then llist querying, sorting, etc. are disabled.
-
void (*printe)(const void *e)
For printing an element. Can be NULL. If NULL, llist_print() cannot be called.
-
dptr_t *meta
Pointer to application-allocated space for storing the nodes managed by the llist. Ignored unless RCSW_NOALLOC_META is passed.
-
dptr_t *elements
Pointer to application-allocated space for storing the datablocks managed by the llist. Ignored unless RCSW_NOALLOC_DATA is passed.
-
size_t elt_size
Size of elements in bytes.
-
int max_elts
Maximum Number of elements allowed. -1 = no upper limit.
-
uint32_t flags
Configuration flags. See llist::flags for valid flags.
-
int (*cmpe)(const void *const e1, const void *const e2)