Struct fifo_params

Struct Documentation

struct fifo_params

Parameters for fifo.

Public Members

void (*printe)(const void *e)

For printing an element. Can be NULL. If NULL, you can’t use fifo_print().

dptr_t *elements

Pointer to application-allocated space for storing data managed by the fifo. 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 fifo::flags for valid flags.