summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-03-30 12:07:32 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-03-30 12:07:32 +0000
commit44b76bc4fa965d1a08c6b27154e8b6a6f1ceff67 (patch)
treeaaaa8d7f370168c336cb8d328abc3dfc4798b903 /apps/tagcache.h
parentb95b67ae858c5cef1790bcc9c1434f03771dd9d1 (diff)
downloadrockbox-44b76bc4fa965d1a08c6b27154e8b6a6f1ceff67.tar.gz
rockbox-44b76bc4fa965d1a08c6b27154e8b6a6f1ceff67.tar.bz2
rockbox-44b76bc4fa965d1a08c6b27154e8b6a6f1ceff67.zip
Added track number sorting to the tagcache and a few new tags to the
engine: track number, year, composer, length and bitrate. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9358 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 04125e1d5e..ddbb8e1dac 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -22,8 +22,10 @@
#include "id3.h"
enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
- tag_filename/*, tag_checksum*/ };
-#define TAG_COUNT 5
+ tag_filename, tag_composer, tag_year, tag_tracknumber,
+ tag_bitrate, tag_length };
+
+#define TAG_COUNT 10
#ifdef HAVE_DIRCACHE
#define HAVE_TC_RAMCACHE 1
@@ -47,6 +49,7 @@ struct tagcache_search {
int filter_count;
int seek_list_count;
int seek_pos;
+ int idx_id;
long position;
int entry_count;
bool valid;
@@ -64,6 +67,7 @@ bool tagcache_search_add_filter(struct tagcache_search *tcs,
int tag, int seek);
bool tagcache_get_next(struct tagcache_search *tcs);
void tagcache_search_finish(struct tagcache_search *tcs);
+long tagcache_get_numeric(const struct tagcache_search *tcs, int tag);
int tagcache_get_progress(void);
#ifdef HAVE_TC_RAMCACHE