diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2007-02-25 20:41:51 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2007-02-25 20:41:51 +0000 |
commit | f5184f34bfd794884d18057a594e7acb9aeb00e4 (patch) | |
tree | d7fd5e0d47ef2bd7039eaaf8ebd1a54566ee2e06 /apps/tagcache.h | |
parent | fcf8145fee8b4952d5d6c88d2b50402d4a81d775 (diff) | |
download | rockbox-f5184f34bfd794884d18057a594e7acb9aeb00e4.tar.gz rockbox-f5184f34bfd794884d18057a594e7acb9aeb00e4.zip |
Cleaned up code a bit, fixed possible bug during committing numeric indices and made code more fault tolerant. Added a new numeric tag making it possible to list recently added tracks. Export your DB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12482 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r-- | apps/tagcache.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h index 771629f6f2..ea8b06f4fa 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h @@ -23,12 +23,13 @@ #include "id3.h" 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_playtime, tag_lastplayed, + tag_filename, tag_composer, tag_comment, tag_albumartist, tag_year, + tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_playtime, + tag_lastplayed, tag_commitid, /* Virtual tags */ - tag_virt_autoscore }; + tag_virt_entryage, tag_virt_autoscore }; -#define TAG_COUNT 15 +#define TAG_COUNT 16 /* Maximum length of a single tag. */ #define TAG_MAXLEN (MAX_PATH*2) @@ -40,7 +41,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 0x54434807 +#define TAGCACHE_MAGIC 0x54434808 /* How much to allocate extra space for ramcache. */ #define TAGCACHE_RESERVE 32768 |