summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index dbe1c92d39..e358cc26e0 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -33,7 +33,8 @@
33enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, 33enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
34 tag_filename, tag_composer, tag_comment, tag_albumartist, tag_grouping, tag_year, 34 tag_filename, tag_composer, tag_comment, tag_albumartist, tag_grouping, tag_year,
35 tag_discnumber, tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating, 35 tag_discnumber, tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating,
36 tag_playtime, tag_lastplayed, tag_commitid, tag_mtime, tag_lastoffset, 36 tag_playtime, tag_lastplayed, tag_commitid, tag_mtime, tag_lastelapsed,
37 tag_lastoffset,
37 /* Real tags end here, count them. */ 38 /* Real tags end here, count them. */
38 TAG_COUNT, 39 TAG_COUNT,
39 /* Virtual tags */ 40 /* Virtual tags */
@@ -51,7 +52,7 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
51#define IDX_BUF_DEPTH 64 52#define IDX_BUF_DEPTH 64
52 53
53/* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */ 54/* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */
54#define TAGCACHE_MAGIC 0x5443480e 55#define TAGCACHE_MAGIC 0x5443480f
55 56
56/* Dump store/restore header version 'TCSxx'. */ 57/* Dump store/restore header version 'TCSxx'. */
57#define TAGCACHE_STATEFILE_MAGIC 0x54435301 58#define TAGCACHE_STATEFILE_MAGIC 0x54435301
@@ -107,10 +108,11 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
107 (1LU << tag_tracknumber) | (1LU << tag_length) | (1LU << tag_bitrate) | \ 108 (1LU << tag_tracknumber) | (1LU << tag_length) | (1LU << tag_bitrate) | \
108 (1LU << tag_playcount) | (1LU << tag_rating) | (1LU << tag_playtime) | \ 109 (1LU << tag_playcount) | (1LU << tag_rating) | (1LU << tag_playtime) | \
109 (1LU << tag_lastplayed) | (1LU << tag_commitid) | (1LU << tag_mtime) | \ 110 (1LU << tag_lastplayed) | (1LU << tag_commitid) | (1LU << tag_mtime) | \
110 (1LU << tag_lastoffset) | (1LU << tag_virt_basename) | \ 111 (1LU << tag_lastelapsed) | (1LU << tag_lastoffset) | \
111 (1LU << tag_virt_length_min) | (1LU << tag_virt_length_sec) | \ 112 (1LU << tag_virt_basename) | (1LU << tag_virt_length_min) | \
112 (1LU << tag_virt_playtime_min) | (1LU << tag_virt_playtime_sec) | \ 113 (1LU << tag_virt_length_sec) | (1LU << tag_virt_playtime_min) | \
113 (1LU << tag_virt_entryage) | (1LU << tag_virt_autoscore)) 114 (1LU << tag_virt_playtime_sec) | (1LU << tag_virt_entryage) | \
115 (1LU << tag_virt_autoscore))
114 116
115#define TAGCACHE_IS_NUMERIC(tag) (BIT_N(tag) & TAGCACHE_NUMERIC_TAGS) 117#define TAGCACHE_IS_NUMERIC(tag) (BIT_N(tag) & TAGCACHE_NUMERIC_TAGS)
116 118