summaryrefslogtreecommitdiff
path: root/src/queue.h
blob: 6b371a81c4171dffa92d6e3b808befea075d3d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef fooqueuehfoo
#define fooqueuehfoo

struct queue;

struct queue* queue_new(void);
void queue_free(struct queue* q, void (*destroy)(void *p, void *userdata), void *userdata);
void queue_push(struct queue *q, void *p);
void* queue_pop(struct queue *q);

int queue_is_empty(struct queue *q);

#endif