summaryrefslogtreecommitdiffstats
path: root/src/tagstruct.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-20 01:12:13 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-20 01:12:13 +0000
commiteecf602476ff5b51bdc08f8fd0e4aa70d2b0ef5a (patch)
treecf193293791faa493736ec0f285b14df9c0ff2a2 /src/tagstruct.h
parenta84f38e6117426a37da2f20b16b587672ee8f9d6 (diff)
partial implementation of native protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@30 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/tagstruct.h')
-rw-r--r--src/tagstruct.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tagstruct.h b/src/tagstruct.h
new file mode 100644
index 00000000..5572c64c
--- /dev/null
+++ b/src/tagstruct.h
@@ -0,0 +1,30 @@
+#ifndef footagstructhfoo
+#define footagstructhfoo
+
+#include <inttypes.h>
+#include <sys/types.h>
+
+#include "sample.h"
+
+struct tagstruct;
+
+struct tagstruct *tagstruct_new(const uint8_t* data, size_t length);
+void tagstruct_free(struct tagstruct*t);
+uint8_t* tagstruct_free_data(struct tagstruct*t, size_t *l);
+
+void tagstruct_puts(struct tagstruct*t, const char *s);
+void tagstruct_putu32(struct tagstruct*t, uint32_t i);
+void tagstruct_putu8(struct tagstruct*t, uint8_t c);
+void tagstruct_put_sample_spec(struct tagstruct *t, struct sample_spec *ss);
+
+int tagstruct_gets(struct tagstruct*t, const char **s);
+int tagstruct_getu32(struct tagstruct*t, uint32_t *i);
+int tagstruct_getu8(struct tagstruct*t, uint8_t *c);
+int tagstruct_get_sample_spec(struct tagstruct *t, struct sample_spec *ss);
+
+int tagstruct_eof(struct tagstruct*t);
+const uint8_t* tagstruct_data(struct tagstruct*t, size_t *l);
+
+
+
+#endif