]> git.datanom.net - clib.git/blob - src/queue.h
init
[clib.git] / src / queue.h
1
2 #ifndef _QUEUE_H_
3 #define _QUEUE_H_
4
5 #include <stdbool.h>
6
7 typedef struct _Queue Queue;
8 typedef void (*QueueFreeFunc)(void*);
9
10 Queue* queue_new();
11 Queue* queue_new_full(QueueFreeFunc free);
12 void queue_destroy(Queue*);
13 void* queue_dequeue(Queue*);
14 void queue_enqueue(Queue*, void*);
15 void* queue_front(Queue*);
16 void* queue_back(Queue*);
17 void queue_clear(Queue*);
18 bool queue_empty(Queue*);
19 int queue_size(Queue*);
20
21 #endif
This page took 0.104426 seconds and 6 git commands to generate.