From 89fa345e9ee4778b5f0391b5ab1cfc043aadc1d9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Apr 2004 22:20:13 +0000 Subject: COmmit missing stuff git-svn-id: file:///home/lennart/svn/public/vfax/trunk@4 541b366f-4dd8-0310-ae39-b2612fd50714 --- qbuf.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 qbuf.h (limited to 'qbuf.h') diff --git a/qbuf.h b/qbuf.h new file mode 100644 index 0000000..12d07b7 --- /dev/null +++ b/qbuf.h @@ -0,0 +1,22 @@ +#ifndef fooqbufhfoo +#define fooqbufhfoo + +/* $Id$ */ + +#include + +struct qbuf { + void *data; + size_t length, index, fill; +}; + +void qbuf_init(struct qbuf *q, size_t length); +void qbuf_done(struct qbuf *q); + +void* qbuf_push(struct qbuf *q, size_t *l); +void qbuf_push_validate(struct qbuf *q, size_t l); + +void* qbuf_pull(struct qbuf *q, size_t *l); +void qbuf_pull_invalidate(struct qbuf *q, size_t l); + +#endif -- cgit