Struct rbuffer_params
Defined in File rbuffer.h
Struct Documentation
-
struct rbuffer_params
Parameters for rbuffer.
Public Members
-
int (*cmpe)(const void *const e1, const void *const e2)
For comparing elements. Can be NULL. If NULL, rbuffer_index_query() is disabled.
-
void (*printe)(const void *e)
For printing an element. Can be NULL. If NULL, rbuffer_print() is disabled.
-
dptr_t *elements
Pointer to application-allocated space for storing the elements managed by the rbuffer. Ignored unless RCSW_NOALLOC_DATA is passed.
-
size_t elt_size
Size of elements in bytes.
-
size_t max_elts
Maximum number of elements allowed.
-
uint32_t flags
Configuration flags. See rbuffer::flags for valid flags.
-
int (*cmpe)(const void *const e1, const void *const e2)