build: Error out early if flex or bison are not found.
[paraslash.git] / chunk_queue.h
1 /* Copyright (C) 2007 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
2
3 /** \file chunk_queue.h Exported symbols from chunk_queue.c. */
4
5 struct chunk_queue;
6 struct queued_chunk;
7
8 int cq_enqueue(struct chunk_queue *cq, const char *buf, size_t num_bytes);
9 struct queued_chunk *cq_peek(struct chunk_queue *cq);
10 void cq_dequeue(struct chunk_queue *cq);
11 void cq_update(struct chunk_queue *cq, size_t sent);
12 int cq_get(struct queued_chunk *qc, const char **buf, size_t *len);
13 struct chunk_queue *cq_new(size_t max_pending);
14 void cq_destroy(struct chunk_queue *cq);