]>
code.delx.au - pulseaudio/blob - src/tagstruct.h
1 #ifndef footagstructhfoo
2 #define footagstructhfoo
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
);
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
, const struct pa_sample_spec
*ss
);
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 pa_sample_spec
*ss
);
25 int tagstruct_eof(struct tagstruct
*t
);
26 const uint8_t* tagstruct_data(struct tagstruct
*t
, size_t *l
);