diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-11-26 18:02:50 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-11-26 18:02:50 +0000 |
commit | 9393e4c24b4c18d7fe1fa8313008f30370cb726e (patch) | |
tree | 746e9210b2144c96b6d58a3f858ccdcb358d854e /apps/metadata/metadata_parsers.h | |
parent | 756c59a534d2e26b0e62fb94a326182f376b8a97 (diff) | |
download | rockbox-9393e4c24b4c18d7fe1fa8313008f30370cb726e.tar.gz rockbox-9393e4c24b4c18d7fe1fa8313008f30370cb726e.zip |
Change how all the metadata parsers are read from a giant swich/case to function pointers via array index. Also unify the api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28672 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/metadata_parsers.h')
-rw-r--r-- | apps/metadata/metadata_parsers.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/metadata/metadata_parsers.h b/apps/metadata/metadata_parsers.h index 7238b71a30..7797b47094 100644 --- a/apps/metadata/metadata_parsers.h +++ b/apps/metadata/metadata_parsers.h | |||
@@ -23,8 +23,7 @@ char* id3_get_num_genre(unsigned int genre_num); | |||
23 | int getid3v2len(int fd); | 23 | int getid3v2len(int fd); |
24 | bool setid3v1title(int fd, struct mp3entry *entry); | 24 | bool setid3v1title(int fd, struct mp3entry *entry); |
25 | void setid3v2title(int fd, struct mp3entry *entry); | 25 | void setid3v2title(int fd, struct mp3entry *entry); |
26 | bool get_mp3_metadata(int fd, struct mp3entry* id3, const char *filename); | 26 | bool get_mp3_metadata(int fd, struct mp3entry* id3); |
27 | |||
28 | bool get_adx_metadata(int fd, struct mp3entry* id3); | 27 | bool get_adx_metadata(int fd, struct mp3entry* id3); |
29 | bool get_aiff_metadata(int fd, struct mp3entry* id3); | 28 | bool get_aiff_metadata(int fd, struct mp3entry* id3); |
30 | bool get_flac_metadata(int fd, struct mp3entry* id3); | 29 | bool get_flac_metadata(int fd, struct mp3entry* id3); |