]> git.datanom.net - clib.git/blame - src/queue.h
init
[clib.git] / src / queue.h
CommitLineData
392d65ba
MR
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.032592 seconds and 6 git commands to generate.