summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-08-30 18:18:37 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-08-30 18:18:37 +0000
commit42946151928206fc7c1ddfea1524ee87b8e5ebb5 (patch)
treeb6c0d5b67ac0d6fad7e8ff67112a4809dcd970ca /apps/tagcache.h
parent658202d42ae323a88b7c7bbabecb845344fb8c64 (diff)
downloadrockbox-42946151928206fc7c1ddfea1524ee87b8e5ebb5.tar.gz
rockbox-42946151928206fc7c1ddfea1524ee87b8e5ebb5.zip
Fixed tagcache returning incorrect entries.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10810 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index d9e1c93cab..dd61931bcd 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -70,6 +70,8 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
70#define FLAG_DELETED 0x0001 /* Entry has been removed from db */ 70#define FLAG_DELETED 0x0001 /* Entry has been removed from db */
71#define FLAG_DIRCACHE 0x0002 /* Filename is a dircache pointer */ 71#define FLAG_DIRCACHE 0x0002 /* Filename is a dircache pointer */
72#define FLAG_DIRTYNUM 0x0004 /* Numeric data has been modified */ 72#define FLAG_DIRTYNUM 0x0004 /* Numeric data has been modified */
73#define FLAG_GET_ATTR(flag) ((flag >> 16) & 0x0000ffff)
74#define FLAG_SET_ATTR(flag,attr) flag = (flag & 0x0000ffff) | (attr << 16)
73 75
74enum clause { clause_none, clause_is, clause_is_not, clause_gt, clause_gteq, 76enum clause { clause_none, clause_is, clause_is_not, clause_gt, clause_gteq,
75 clause_lt, clause_lteq, clause_contains, clause_not_contains, 77 clause_lt, clause_lteq, clause_contains, clause_not_contains,
@@ -111,7 +113,6 @@ struct tagcache_search {
111 int clause_count; 113 int clause_count;
112 int seek_list_count; 114 int seek_list_count;
113 int seek_pos; 115 int seek_pos;
114 int idx_id;
115 long position; 116 long position;
116 int entry_count; 117 int entry_count;
117 bool valid; 118 bool valid;
@@ -122,10 +123,12 @@ struct tagcache_search {
122 123
123 /* Exported variables. */ 124 /* Exported variables. */
124 bool ramsearch; 125 bool ramsearch;
126 bool ramresult;
125 int type; 127 int type;
126 char *result; 128 char *result;
127 int result_len; 129 int result_len;
128 long result_seek; 130 long result_seek;
131 int idx_id;
129}; 132};
130 133
131int tagcache_str_to_tag(const char *str); 134int tagcache_str_to_tag(const char *str);