summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2008-08-29 21:14:58 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2008-08-29 21:14:58 +0000
commitd8bb6701e7f860997ce18a28c5eb8af66ac75f9f (patch)
tree915dcffd028f53cb747322d1786ca87760246abc /apps/tagcache.h
parent5d22e3cbdd251819a4d2d07b9a12994d5aef778d (diff)
downloadrockbox-d8bb6701e7f860997ce18a28c5eb8af66ac75f9f.tar.gz
rockbox-d8bb6701e7f860997ce18a28c5eb8af66ac75f9f.tar.bz2
rockbox-d8bb6701e7f860997ce18a28c5eb8af66ac75f9f.zip
Fixed a possible index id destruction and temporary problems with the DB when DB has been loaded to ram, dircache enabled and statistics gathering ON. Fixed serial (affecting last played song order) being one too low after importing the changelog. A bit of code cleanup and comments also.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18363 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 9415c9815e..e49b65f1f3 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -24,17 +24,21 @@
#include "id3.h"
+/**
+ Note: When adding new tags, make sure to update index_entry_ec in
+ tagcache.c and bump up the header version too.
+ */
enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
tag_filename, tag_composer, tag_comment, tag_albumartist, tag_grouping, tag_year,
tag_discnumber, tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating,
tag_playtime, tag_lastplayed, tag_commitid, tag_mtime,
+ /* Real tags end here, count them. */
+ TAG_COUNT,
/* 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 20
-
/* Maximum length of a single tag. */
#define TAG_MAXLEN (MAX_PATH*2)