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