Mercurial > audlegacy
diff src/libaudtag/wma/wma.h @ 4887:0ddbd0025174 default tip
added libaudtag. (not used yet.)
| author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
|---|---|
| date | Wed, 05 May 2010 18:26:06 +0900 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libaudtag/wma/wma.h Wed May 05 18:26:06 2010 +0900 @@ -0,0 +1,54 @@ +/* + * Copyright 2009 Paula Stanciu + * + * This file is part of Audacious. + * + * Audacious is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, version 3 of the License. + * + * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * Audacious. If not, see <http://www.gnu.org/licenses/>. + * + * The Audacious team does not consider modular code linking to Audacious or + * using our public API to be a derived work. + */ + +#ifndef _WMA_H + +#define _WMA_H + +#include "audlegacy/tuple.h" +#include "audlegacy/vfs.h" +#include "wma_fmt.h" + +#ifndef TAG_WMA_MODULE_H +/* static functions */ + +/* reads the whole structure, containing the data */ +static GenericHeader *read_generic_header(VFSFile *f, gboolean read_data); + +static HeaderObj *read_top_header_object(VFSFile *f); + +static gboolean write_top_header_object(VFSFile *f, HeaderObj *h); + +static ContentDescriptor **read_descriptors(VFSFile *f, guint count, Tuple*t, gboolean populate_tuple); + +static ContentDescrObj *read_content_descr_obj(VFSFile *f); + +static ExtContentDescrObj *read_ext_content_descr_obj(VFSFile * f, Tuple *t, gboolean populate_tuple); + +static long ftell_object_by_guid(VFSFile *f, GUID *g); +static long ftell_object_by_str(VFSFile *f, gchar *s); +#endif + +/* TAG plugin API */ +gboolean wma_can_handle_file(VFSFile *f); +Tuple *wma_populate_tuple_from_file(Tuple *t, VFSFile *f); +gboolean wma_write_tuple_to_file(Tuple *t, VFSFile *f); + +#endif /* _WMA_H */
