summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2007-08-03 10:00:42 +0000
committerDan Everton <dan@iocaine.org>2007-08-03 10:00:42 +0000
commitf4a61f0c4a999790f07d061352100ac6310a38f6 (patch)
tree0cf03d0a08f5b5de7318ed5db948fd41c5196cca /apps/tagcache.h
parent1fbf847eedd90b6f3e40decd64e1094d7a7dc383 (diff)
downloadrockbox-f4a61f0c4a999790f07d061352100ac6310a38f6.tar.gz
rockbox-f4a61f0c4a999790f07d061352100ac6310a38f6.tar.bz2
rockbox-f4a61f0c4a999790f07d061352100ac6310a38f6.zip
Add support for parsing the disc number tag from metadata and use of it in the database. Patch originally from FS#4961 with some minor tweaks by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 3d80c6975f..ada624783a 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -24,14 +24,14 @@
enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
tag_filename, tag_composer, tag_comment, tag_albumartist, tag_year,
- tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating,
+ tag_discnumber, tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating,
tag_playtime, tag_lastplayed, tag_commitid,
/* Virtual tags */
tag_virt_length_min, tag_virt_length_sec,
tag_virt_playtime_min, tag_virt_playtime_sec,
tag_virt_entryage, tag_virt_autoscore };
-#define TAG_COUNT 17
+#define TAG_COUNT 18
/* Maximum length of a single tag. */
#define TAG_MAXLEN (MAX_PATH*2)
@@ -43,7 +43,7 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
#define IDX_BUF_DEPTH 64
/* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */
-#define TAGCACHE_MAGIC 0x54434809
+#define TAGCACHE_MAGIC 0x5443480A
/* How much to allocate extra space for ramcache. */
#define TAGCACHE_RESERVE 32768