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.tar.gz
rockbox-0dd7ea2d712944b21ede9f57bebd1009b03932e6.zip
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 f1819855db..ea4d255630 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,
30 30
31#define TAG_COUNT 13 31#define TAG_COUNT 13
32 32
33/* Maximum length of a single tag. */
34#define TAG_MAXLEN (MAX_PATH*2)
35
33/* Allow a little drift to the filename ordering (should not be too high/low). */ 36/* Allow a little drift to the filename ordering (should not be too high/low). */
34#define POS_HISTORY_COUNT 4 37#define POS_HISTORY_COUNT 4
35 38
@@ -119,7 +122,7 @@ struct tagcache_search {
119 int entry_count; 122 int entry_count;
120 bool valid; 123 bool valid;
121 bool initialized; 124 bool initialized;
122 long *unique_list; 125 unsigned long *unique_list;
123 int unique_list_capacity; 126 int unique_list_capacity;
124 int unique_list_count; 127 int unique_list_count;
125 128
@@ -133,6 +136,10 @@ struct tagcache_search {
133 int idx_id; 136 int idx_id;
134}; 137};
135 138
139#ifdef __PCTOOL__
140void build_tagcache(const char *path);
141#endif
142
136int tagcache_str_to_tag(const char *str); 143int tagcache_str_to_tag(const char *str);
137const char* tagcache_tag_to_str(int tag); 144const char* tagcache_tag_to_str(int tag);
138 145