tag: moved code to tag_id3.c

The ID3 code uses only the public tag API, but is otherwise
unrelated.  Move it to a separate source file.
This commit is contained in:
Max Kellermann
2008-08-29 09:38:27 +02:00
parent 055f4a41c5
commit 6f72fe3ecf
6 changed files with 403 additions and 352 deletions

View File

@@ -19,15 +19,9 @@
#ifndef TAG_H
#define TAG_H
#include "../config.h"
#include "mpd_types.h"
#include "os_compat.h"
#ifdef HAVE_ID3TAG
#include <id3tag.h>
#endif
enum tag_type {
TAG_ITEM_ARTIST,
TAG_ITEM_ALBUM,
@@ -56,14 +50,8 @@ struct tag {
mpd_uint8 numOfItems;
};
#ifdef HAVE_ID3TAG
struct tag *tag_id3_import(struct id3_tag *);
#endif
struct tag *tag_ape_load(char *file);
struct tag *tag_id3_load(char *file);
struct tag *tag_new(void);
void tag_lib_init(void);