Reworked output file writing.
[ruby-vorbistagger.git] / ext / vcedit.h
1 /*
2  * Copyright (C) 2000-2001 Michael Smith (msmith at xiph org)
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation, version 2.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16  * MA 02110-1301 USA
17  */
18
19 #ifndef __VCEDIT_H
20 #define __VCEDIT_H
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #include <stdio.h>
27 #include <ogg/ogg.h>
28 #include <vorbis/codec.h>
29
30 typedef struct vcedit_state_St vcedit_state;
31
32 vcedit_state *vcedit_state_new (const char *filename);
33 void vcedit_state_ref (vcedit_state *state);
34 void vcedit_state_unref (vcedit_state *state);
35 vorbis_comment *vcedit_comments (vcedit_state *state);
36 int vcedit_write (vcedit_state *state);
37 const char *vcedit_error (vcedit_state *state);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* __VCEDIT_H */
44