From 42946151928206fc7c1ddfea1524ee87b8e5ebb5 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Wed, 30 Aug 2006 18:18:37 +0000 Subject: Fixed tagcache returning incorrect entries. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10810 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/tagcache.h') 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, #define FLAG_DELETED 0x0001 /* Entry has been removed from db */ #define FLAG_DIRCACHE 0x0002 /* Filename is a dircache pointer */ #define FLAG_DIRTYNUM 0x0004 /* Numeric data has been modified */ +#define FLAG_GET_ATTR(flag) ((flag >> 16) & 0x0000ffff) +#define FLAG_SET_ATTR(flag,attr) flag = (flag & 0x0000ffff) | (attr << 16) enum clause { clause_none, clause_is, clause_is_not, clause_gt, clause_gteq, clause_lt, clause_lteq, clause_contains, clause_not_contains, @@ -111,7 +113,6 @@ struct tagcache_search { int clause_count; int seek_list_count; int seek_pos; - int idx_id; long position; int entry_count; bool valid; @@ -122,10 +123,12 @@ struct tagcache_search { /* Exported variables. */ bool ramsearch; + bool ramresult; int type; char *result; int result_len; long result_seek; + int idx_id; }; int tagcache_str_to_tag(const char *str); -- cgit v1.2.3