]> code.delx.au - pulseaudio/blob - polyp/tagstruct.h
add support for module search path as command line argument
[pulseaudio] / polyp / tagstruct.h
1 #ifndef footagstructhfoo
2 #define footagstructhfoo
3
4 /* $Id$ */
5
6 /***
7 This file is part of polypaudio.
8
9 polypaudio is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published
11 by the Free Software Foundation; either version 2 of the License,
12 or (at your option) any later version.
13
14 polypaudio is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with polypaudio; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 USA.
23 ***/
24
25 #include <inttypes.h>
26 #include <sys/types.h>
27
28 #include "sample.h"
29
30 struct pa_tagstruct;
31
32 struct pa_tagstruct *pa_tagstruct_new(const uint8_t* data, size_t length);
33 void pa_tagstruct_free(struct pa_tagstruct*t);
34 uint8_t* pa_tagstruct_free_data(struct pa_tagstruct*t, size_t *l);
35
36 void pa_tagstruct_puts(struct pa_tagstruct*t, const char *s);
37 void pa_tagstruct_putu32(struct pa_tagstruct*t, uint32_t i);
38 void pa_tagstruct_putu8(struct pa_tagstruct*t, uint8_t c);
39 void pa_tagstruct_put_sample_spec(struct pa_tagstruct *t, const struct pa_sample_spec *ss);
40 void pa_tagstruct_put_arbitrary(struct pa_tagstruct*t, const void *p, size_t length);
41 void pa_tagstruct_put_boolean(struct pa_tagstruct*t, int b);
42 void pa_tagstruct_put_timeval(struct pa_tagstruct*t, const struct timeval *tv);
43
44 int pa_tagstruct_gets(struct pa_tagstruct*t, const char **s);
45 int pa_tagstruct_getu32(struct pa_tagstruct*t, uint32_t *i);
46 int pa_tagstruct_getu8(struct pa_tagstruct*t, uint8_t *c);
47 int pa_tagstruct_get_sample_spec(struct pa_tagstruct *t, struct pa_sample_spec *ss);
48 int pa_tagstruct_get_arbitrary(struct pa_tagstruct *t, const void **p, size_t length);
49 int pa_tagstruct_get_boolean(struct pa_tagstruct *t, int *b);
50 int pa_tagstruct_get_timeval(struct pa_tagstruct*t, struct timeval *tv);
51
52 int pa_tagstruct_eof(struct pa_tagstruct*t);
53 const uint8_t* pa_tagstruct_data(struct pa_tagstruct*t, size_t *l);
54
55 #endif