summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-11-10 08:03:33 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-11-10 08:03:33 +0000
commit0dd7ea2d712944b21ede9f57bebd1009b03932e6 (patch)
treedc6065067aa862cc6a71c206b67554270fe507bd /apps/tagcache.h
parentae221f140231cb2fd4833443d7810dfce03c606a (diff)
downloadrockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.zip
rockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.tar.gz
rockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.tar.bz2
rockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.tar.xz
Support building tagcache db natively on PC using the core of the
Rockbox tagcache database engine. Only host endian support at the moment and no command line parameters. Mainly for developers for debugging at the moment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11497 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index f181985..ea4d255 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -30,6 +30,9 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
#define TAG_COUNT 13
+/* Maximum length of a single tag. */
+#define TAG_MAXLEN (MAX_PATH*2)
+
/* Allow a little drift to the filename ordering (should not be too high/low). */
#define POS_HISTORY_COUNT 4
@@ -119,7 +122,7 @@ struct tagcache_search {
int entry_count;
bool valid;
bool initialized;
- long *unique_list;
+ unsigned long *unique_list;
int unique_list_capacity;
int unique_list_count;
@@ -133,6 +136,10 @@ struct tagcache_search {
int idx_id;
};
+#ifdef __PCTOOL__
+void build_tagcache(const char *path);
+#endif
+
int tagcache_str_to_tag(const char *str);
const char* tagcache_tag_to_str(int tag);