Data Structures | |
struct | _fifo_queue_t |
Representation of a FIFO queue. More... | |
Typedefs | |
typedef _fifo_queue_t | fifo_queue_t |
Representation of a FIFO queue. | |
Functions | |
fifo_queue_t * | fifo_queue_create (u_short size) |
void | fifo_queue_destroy (fifo_queue_t *que) |
u_short | fifo_queue_max_size (fifo_queue_t *que) |
void * | fifo_queue_pop (fifo_queue_t *que) |
Removes the first element of the FIFO queue specified. | |
short | fifo_queue_push (fifo_queue_t *que, void *elem) |
Adds an element to the end of a fifo queue. | |
u_short | fifo_queue_size (fifo_queue_t *que) |
void * | fifo_queue_top (fifo_queue_t *que) |
Gets the first element of the FIFO queue specified. |
typedef struct _fifo_queue_t fifo_queue_t |
Representation of a FIFO queue.
Contains all the information needed to control a FIFO queue.
void* fifo_queue_pop | ( | fifo_queue_t * | que | ) | [inline] |
Removes the first element of the FIFO queue specified.
"Pops" the topmost element from the FIFO queue specified.
que | Pointer to the queue. |
short fifo_queue_push | ( | fifo_queue_t * | que, | |
void * | elem | |||
) | [inline] |
Adds an element to the end of a fifo queue.
"Pushes" an element into the fifo queue specified.
que | Pointer to the fifo queue. | |
elem | Pointer to the element to be added |
void* fifo_queue_top | ( | fifo_queue_t * | que | ) | [inline] |
Gets the first element of the FIFO queue specified.
Returns a pointer to the topmost element in the queue without removing it.
que | Pointer to the queue. |