summaryrefslogtreecommitdiff
path: root/plugins/vorbis/vcedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vorbis/vcedit.h')
-rw-r--r--plugins/vorbis/vcedit.h82
1 files changed, 24 insertions, 58 deletions
diff --git a/plugins/vorbis/vcedit.h b/plugins/vorbis/vcedit.h
index 173876f3..7eabe877 100644
--- a/plugins/vorbis/vcedit.h
+++ b/plugins/vorbis/vcedit.h
@@ -1,69 +1,35 @@
-/* This program is licensed under the GNU Library General Public License, version 2,
- * a copy of which is included with this program (with filename LICENSE.LGPL).
- *
- * (c) 2000-2001 Michael Smith <msmith@xiph.org>
- *
- * VCEdit header.
- *
- * last modified: $ID:$
- */
+/*
+ This file is part of Deadbeef Player source code
+ http://deadbeef.sourceforge.net
-#ifndef __VCEDIT_H
-#define __VCEDIT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdio.h>
-#include <ogg/ogg.h>
-#include <vorbis/codec.h>
+ Ogg Vorbis plugin Ogg edit functions header
-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 *);
+ Copyright (C) 2014 Ian Nartowicz <deadbeef@nartowicz.co.uk>
-typedef struct {
- long *streams;
- size_t streams_len;
-} vcedit_serial_nos;
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
-typedef struct {
- ogg_sync_state *oy;
- ogg_stream_state *os;
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
- vorbis_comment *vc;
- vorbis_info *vi;
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
- 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;
-} vcedit_state;
+#ifndef __VCEDIT_H
+#define __VCEDIT_H
-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);
+#define ALBUM_ART_KEY "METADATA_BLOCK_PICTURE"
+#define ALBUM_ART_META "metadata_block_picture"
-#ifdef __cplusplus
-}
-#endif
+off_t vcedit_write_metadata(DB_FILE *in, const char *fname, int link, const char *vendor, const int num_tags, char **tags, char **lasterror);
#endif /* __VCEDIT_H */
-