From 0dd7ea2d712944b21ede9f57bebd1009b03932e6 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Fri, 10 Nov 2006 08:03:33 +0000 Subject: 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 --- apps/tagcache.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/tagcache.h') 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, #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); -- cgit v1.2.3