]> code.delx.au - pulseaudio/blob - src/tagstruct.h
5572c64c6a3fa1d0d2c6a6da1dc8624f4cf6092a
[pulseaudio] / src / tagstruct.h
1 #ifndef footagstructhfoo
2 #define footagstructhfoo
3
4 #include <inttypes.h>
5 #include <sys/types.h>
6
7 #include "sample.h"
8
9 struct tagstruct;
10
11 struct tagstruct *tagstruct_new(const uint8_t* data, size_t length);
12 void tagstruct_free(struct tagstruct*t);
13 uint8_t* tagstruct_free_data(struct tagstruct*t, size_t *l);
14
15 void tagstruct_puts(struct tagstruct*t, const char *s);
16 void tagstruct_putu32(struct tagstruct*t, uint32_t i);
17 void tagstruct_putu8(struct tagstruct*t, uint8_t c);
18 void tagstruct_put_sample_spec(struct tagstruct *t, struct sample_spec *ss);
19
20 int tagstruct_gets(struct tagstruct*t, const char **s);
21 int tagstruct_getu32(struct tagstruct*t, uint32_t *i);
22 int tagstruct_getu8(struct tagstruct*t, uint8_t *c);
23 int tagstruct_get_sample_spec(struct tagstruct *t, struct sample_spec *ss);
24
25 int tagstruct_eof(struct tagstruct*t);
26 const uint8_t* tagstruct_data(struct tagstruct*t, size_t *l);
27
28
29
30 #endif