summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-04-10 10:26:24 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-04-10 10:26:24 +0000
commit58fe4dea05f104111e8dfb5063df0d7aba504ea0 (patch)
tree72c3613274475f380bc76ccb097b559061a1e617 /apps/tagcache.h
parent2caad6fbc112c7b0d8f54383e9406063661aa127 (diff)
downloadrockbox-58fe4dea05f104111e8dfb5063df0d7aba504ea0.zip
rockbox-58fe4dea05f104111e8dfb5063df0d7aba504ea0.tar.gz
rockbox-58fe4dea05f104111e8dfb5063df0d7aba504ea0.tar.bz2
rockbox-58fe4dea05f104111e8dfb5063df0d7aba504ea0.tar.xz
Major improvement in playlist creation speed with tagcache. Fixed also
the sorting bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9592 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 794d2c0..2def028 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -43,7 +43,7 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
enum clause { clause_none, clause_is, clause_gt, clause_gteq, clause_lt,
clause_lteq, clause_contains, clause_begins_with, clause_ends_with };
-enum modifies { clause_mod_none, clause_mod_not };
+enum modifiers { clause_mod_none, clause_mod_not };
struct tagcache_search_clause
{
@@ -81,12 +81,16 @@ struct tagcache_search {
};
bool tagcache_is_numeric_tag(int type);
+bool tagcache_is_unique_tag(int type);
+bool tagcache_is_sorted_tag(int type);
bool tagcache_search(struct tagcache_search *tcs, int tag);
bool tagcache_search_add_filter(struct tagcache_search *tcs,
int tag, int seek);
bool tagcache_search_add_clause(struct tagcache_search *tcs,
struct tagcache_search_clause *clause);
bool tagcache_get_next(struct tagcache_search *tcs);
+bool tagcache_retrieve(struct tagcache_search *tcs, int idxid,
+ char *buf, long size);
void tagcache_search_finish(struct tagcache_search *tcs);
long tagcache_get_numeric(const struct tagcache_search *tcs, int tag);