]> code.delx.au - pulseaudio/blobdiff - polyp/tagstruct.h
rename src to polyp
[pulseaudio] / polyp / tagstruct.h
diff --git a/polyp/tagstruct.h b/polyp/tagstruct.h
new file mode 100644 (file)
index 0000000..aefd03c
--- /dev/null
@@ -0,0 +1,53 @@
+#ifndef footagstructhfoo
+#define footagstructhfoo
+
+/* $Id$ */
+
+/***
+  This file is part of polypaudio.
+  polypaudio is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published
+  by the Free Software Foundation; either version 2 of the License,
+  or (at your option) any later version.
+  polypaudio is distributed in the hope that it will be useful, but
+  WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  General Public License for more details.
+  You should have received a copy of the GNU General Public License
+  along with polypaudio; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+  USA.
+***/
+
+#include <inttypes.h>
+#include <sys/types.h>
+
+#include "sample.h"
+
+struct pa_tagstruct;
+
+struct pa_tagstruct *pa_tagstruct_new(const uint8_t* data, size_t length);
+void pa_tagstruct_free(struct pa_tagstruct*t);
+uint8_t* pa_tagstruct_free_data(struct pa_tagstruct*t, size_t *l);
+
+void pa_tagstruct_puts(struct pa_tagstruct*t, const char *s);
+void pa_tagstruct_putu32(struct pa_tagstruct*t, uint32_t i);
+void pa_tagstruct_putu8(struct pa_tagstruct*t, uint8_t c);
+void pa_tagstruct_put_sample_spec(struct pa_tagstruct *t, const struct pa_sample_spec *ss);
+void pa_tagstruct_put_arbitrary(struct pa_tagstruct*t, const void *p, size_t length);
+
+int pa_tagstruct_gets(struct pa_tagstruct*t, const char **s);
+int pa_tagstruct_getu32(struct pa_tagstruct*t, uint32_t *i);
+int pa_tagstruct_getu8(struct pa_tagstruct*t, uint8_t *c);
+int pa_tagstruct_get_sample_spec(struct pa_tagstruct *t, struct pa_sample_spec *ss);
+int pa_tagstruct_get_arbitrary(struct pa_tagstruct *t, const void **p, size_t length);
+
+int pa_tagstruct_eof(struct pa_tagstruct*t);
+const uint8_t* pa_tagstruct_data(struct pa_tagstruct*t, size_t *l);
+
+
+
+#endif