Commit 3ff470ba authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Update: Code formating

parent 3b21ceeb
This diff is collapsed.
......@@ -2,6 +2,7 @@
* a copy of which is included with this program (with filename LICENSE.LGPL).
*
* (c) 2000-2001 Michael Smith <msmith@xiph.org>
* (c) 2020 Philipp Schafft <lion@lion.leolix.org>
*
* VCEdit header.
*
......@@ -13,7 +14,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#endif
#include <stdio.h>
#include <ogg/ogg.h>
......@@ -23,47 +24,47 @@ typedef size_t (*vcedit_read_func)(void *, size_t, size_t, void *);
typedef size_t (*vcedit_write_func)(const void *, size_t, size_t, void *);
typedef struct {
long *streams;
size_t streams_len;
long *streams;
size_t streams_len;
} vcedit_serial_nos;
typedef struct {
ogg_sync_state *oy;
ogg_stream_state *os;
ogg_sync_state *oy;
ogg_stream_state *os;
vorbis_comment *vc;
vorbis_info *vi;
vorbis_comment *vc;
vorbis_info *vi;
vcedit_read_func read;
vcedit_write_func write;
vcedit_read_func read;
vcedit_write_func write;
void *in;
int serial;
vcedit_serial_nos serials;
unsigned char *mainbuf;
unsigned char *bookbuf;
int mainlen;
int booklen;
char *lasterror;
char *vendor;
int prevW;
int extrapage;
int eosin;
struct vcedit_buffer_chain *sidebuf;
void *in;
int serial;
vcedit_serial_nos serials;
unsigned char *mainbuf;
unsigned char *bookbuf;
int mainlen;
int booklen;
char *lasterror;
char *vendor;
int prevW;
int extrapage;
int eosin;
struct vcedit_buffer_chain *sidebuf;
} vcedit_state;
extern vcedit_state * vcedit_new_state(void);
extern void vcedit_clear(vcedit_state *state);
extern vorbis_comment * vcedit_comments(vcedit_state *state);
extern int vcedit_open(vcedit_state *state, FILE *in);
extern int vcedit_open_callbacks(vcedit_state *state, void *in,
vcedit_read_func read_func, vcedit_write_func write_func);
extern int vcedit_write(vcedit_state *state, void *out);
extern vcedit_state * vcedit_new_state(void);
extern void vcedit_clear(vcedit_state *state);
extern vorbis_comment * vcedit_comments(vcedit_state *state);
extern int vcedit_open(vcedit_state *state, FILE *in);
extern int vcedit_open_callbacks(vcedit_state *state, void *in,
vcedit_read_func read_func, vcedit_write_func write_func);
extern int vcedit_write(vcedit_state *state, void *out);
extern char * vcedit_error(vcedit_state *state);
#ifdef __cplusplus
}
#endif
#endif
#endif /* __VCEDIT_H */
typedef struct vcedit_page_buffer {
char *data;
size_t data_len;
char *data;
size_t data_len;
} vcedit_page_buffer;
typedef struct vcedit_buffer_chain {
struct vcedit_buffer_chain *next;
struct vcedit_page_buffer buffer;
struct vcedit_buffer_chain *next;
struct vcedit_page_buffer buffer;
} vcedit_buffer_chain;
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment