summaryrefslogtreecommitdiff
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-06-01 01:22:36 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-12-03 06:34:47 -0500
commit98c7505c60714d216814ababe645ed86785f2aec (patch)
tree83a8e40b07b5f50f2cda3d6a93d630bcaae93de0 /apps/tagcache.h
parent03c225fe54a2ae4699f92473ea21da11ba043148 (diff)
downloadrockbox-98c7505c60714d216814ababe645ed86785f2aec.tar.gz
rockbox-98c7505c60714d216814ababe645ed86785f2aec.zip
tagcache: move TAGCACHE_STATEFILE define to .c file
Provide a function to remove the statefile so that external users of this define can call that instead. Change-Id: Id3e1e0564b25fe28bbc68c2e9365d8bf51e6e4f8
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index f6cd03e972..11d58c01bd 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -50,9 +50,6 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
50#define TAGCACHE_MAX_FILTERS 4 50#define TAGCACHE_MAX_FILTERS 4
51#define TAGCACHE_MAX_CLAUSES 32 51#define TAGCACHE_MAX_CLAUSES 32
52 52
53/* Serialized DB. */
54#define TAGCACHE_STATEFILE ROCKBOX_DIR "/database_state.tcd"
55
56/* Tag to be used on untagged files. */ 53/* Tag to be used on untagged files. */
57#define UNTAGGED "<Untagged>" 54#define UNTAGGED "<Untagged>"
58 55
@@ -185,6 +182,7 @@ struct tagcache_stat* tagcache_get_stat(void);
185int tagcache_get_commit_step(void); 182int tagcache_get_commit_step(void);
186bool tagcache_prepare_shutdown(void); 183bool tagcache_prepare_shutdown(void);
187void tagcache_shutdown(void); 184void tagcache_shutdown(void);
185void tagcache_remove_statefile(void);
188 186
189void tagcache_screensync_event(void); 187void tagcache_screensync_event(void);
190void tagcache_screensync_enable(bool state); 188void tagcache_screensync_enable(bool state);