1 /* This program is licensed under the GNU Library General Public License, version 2,
2 * a copy of which is included with this program (with filename LICENSE.LGPL).
4 * (c) 2000-2001 Michael Smith <msmith@xiph.org>
20 #include <vorbis/codec.h>
22 typedef size_t (*vcedit_read_func
)(void *, size_t, size_t, void *);
23 typedef size_t (*vcedit_write_func
)(const void *, size_t, size_t, void *);
32 vcedit_read_func read
;
33 vcedit_write_func write
;
37 unsigned char *mainbuf
;
38 unsigned char *bookbuf
;
48 extern vcedit_state
* vcedit_new_state(void);
49 extern void vcedit_clear(vcedit_state
*state
);
50 extern vorbis_comment
* vcedit_comments(vcedit_state
*state
);
51 extern int vcedit_open(vcedit_state
*state
, FILE *in
);
52 extern int vcedit_open_callbacks(vcedit_state
*state
, void *in
,
53 vcedit_read_func read_func
, vcedit_write_func write_func
);
54 extern int vcedit_write(vcedit_state
*state
, void *out
);
55 extern char * vcedit_error(vcedit_state
*state
);
61 #endif /* __VCEDIT_H */