25 RCSIDH(fifo_h,
"$Id: b86abc5dfe5f872a6ae1629906a4edb2e467557e $")
31 #include <freeradius-devel/build.h>
32 #include <freeradius-devel/missing.h>
33 #include <freeradius-devel/util/talloc.h>
51 #define fr_fifo_talloc_create(_ctx, _talloc_type, _max_entries, _node_free) \
52 _fr_fifo_create(_ctx, #_talloc_type, _max_entries, _node_free)
66 #define fr_fifo_create(_ctx, _max_entries, _node_free) \
67 _fr_fifo_create(_ctx, NULL, _max_entries, _node_free)
fr_fifo_free_t free_node
Function to call to free nodes when the fifo is freed.
void * fr_fifo_peek(fr_fifo_t *fi)
Examine the next element that would be popped.
fr_fifo_t * _fr_fifo_create(TALLOC_CTX *ctx, char const *type, int max_entries, fr_fifo_free_t free_node)
Create a fifo queue.
unsigned int fr_fifo_num_elements(fr_fifo_t *fi)
Return the number of elements in the fifo queue.
void * fr_fifo_pop(fr_fifo_t *fi)
Pop data off of the fifo.
int fr_fifo_push(fr_fifo_t *fi, void *data)
Push data onto the fifo.
void(* fr_fifo_free_t)(void *)
fr_aka_sim_id_type_t type