summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
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