summaryrefslogtreecommitdiffstats
path: root/qbuf.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-04-22 22:20:13 +0000
committerLennart Poettering <lennart@poettering.net>2004-04-22 22:20:13 +0000
commit89fa345e9ee4778b5f0391b5ab1cfc043aadc1d9 (patch)
treef92b98e1686a7424a476bc20e6ee37ab3aa971dc /qbuf.h
parent783b56d54788f177881d68ae2ec7a7cb4bb38ac4 (diff)
COmmit missing stuffHEADmaster
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.h22
1 files changed, 22 insertions, 0 deletions
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 <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