diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-07-20 12:19:31 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-07-20 12:19:31 +0000 |
commit | cb8c79541504ce8a4e1d4243ccec826707e30544 (patch) | |
tree | 66c065035b31fc480db2fe3e83daf1672829a87a /apps/tagcache.h | |
parent | 7b5af8c045d1db6e805981e1c6d1b32de200e3f3 (diff) |
Support importing runtimedb data from ascii files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10260 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r-- | apps/tagcache.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h index e655088cc2..387f8ab74c 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h @@ -36,7 +36,7 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, #define IDX_BUF_DEPTH 64 /* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */ -#define TAGCACHE_MAGIC 0x54434805 +#define TAGCACHE_MAGIC 0x54434806 /* How much to allocate extra space for ramcache. */ #define TAGCACHE_RESERVE 32768 @@ -79,6 +79,7 @@ enum modifiers { clause_mod_none, clause_mod_not }; struct tagcache_stat { bool initialized; /* Is tagcache currently busy? */ + bool ready; /* Is tagcache ready to be used? */ bool ramcache; /* Is tagcache loaded in ram? */ bool commit_delayed; /* Has commit been delayed until next reboot? */ int commit_step; /* Commit progress */ @@ -124,6 +125,9 @@ struct tagcache_search { long result_seek; }; +int tagcache_str_to_tag(const char *str); +const char* tagcache_tag_to_str(int tag); + bool tagcache_is_numeric_tag(int type); bool tagcache_is_unique_tag(int type); bool tagcache_is_sorted_tag(int type); @@ -138,6 +142,9 @@ bool tagcache_retrieve(struct tagcache_search *tcs, int idxid, char *buf, long size); void tagcache_search_finish(struct tagcache_search *tcs); long tagcache_get_numeric(const struct tagcache_search *tcs, int tag); +long tagcache_increase_serial(void); +long tagcache_get_serial(void); +bool tagcache_import_changelog(void); bool tagcache_create_changelog(struct tagcache_search *tcs); bool tagcache_modify_numeric_entry(struct tagcache_search *tcs, int tag, long data); |