diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-04-22 22:20:13 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-04-22 22:20:13 +0000 |
commit | 89fa345e9ee4778b5f0391b5ab1cfc043aadc1d9 (patch) | |
tree | f92b98e1686a7424a476bc20e6ee37ab3aa971dc /qbuf.h | |
parent | 783b56d54788f177881d68ae2ec7a7cb4bb38ac4 (diff) |
git-svn-id: file:///home/lennart/svn/public/vfax/trunk@4 541b366f-4dd8-0310-ae39-b2612fd50714
Diffstat (limited to 'qbuf.h')
-rw-r--r-- | qbuf.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#ifndef fooqbufhfoo +#define fooqbufhfoo + +/* $Id$ */ + +#include <sys/types.h> + +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 |