struct g2l_t g2l_t
An opaque data type used as a container for the generic doubly linked list implementation,...
Definition: g2l.h:42
bool g2l_pop(g2l_t *self, void *data)
The function that must be used to "pop" the stack (and optionally retrieve the value contained in the...
size_t g2l_size(g2l_t const *self)
A function that can be used to retrieve the current number of items contained in the linked list obje...
int g2l_push(g2l_t *self, void const *data)
The function that must be used to add a new element to the linked list object self .
bool g2l_dequeue(g2l_t *self, void *data)
An alias to g2l_shift , this function can be used to "dequeue" (i.e., shift) the list's oldest elemen...
void g2l_clear(g2l_t *self)
A function that can be used to clear (i.e., empty) a linked list object.
void g2l_destroy(g2l_t *self)
The function that should be used to destroy a linked list object once it is no longer needed by the a...
g2l_t * g2l_create(size_t data_size, bool abort_on_enomem)
The function that must be used to instantiate a new linked list object (i.e., g2l_t ).
bool g2l_shift(g2l_t *self, void *data)
The function that must be used to "shift" the list's oldest element (and optionally retrieve the valu...
bool g2l_enqueue(g2l_t *self, void const *data)
An alias to g2l_push , a function that can be used to "enqueue" a new element to the linked list obje...