diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-06-01 01:22:36 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-03 06:34:47 -0500 |
commit | 98c7505c60714d216814ababe645ed86785f2aec (patch) | |
tree | 83a8e40b07b5f50f2cda3d6a93d630bcaae93de0 /apps/tagcache.h | |
parent | 03c225fe54a2ae4699f92473ea21da11ba043148 (diff) | |
download | rockbox-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.h | 4 |
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); | |||
185 | int tagcache_get_commit_step(void); | 182 | int tagcache_get_commit_step(void); |
186 | bool tagcache_prepare_shutdown(void); | 183 | bool tagcache_prepare_shutdown(void); |
187 | void tagcache_shutdown(void); | 184 | void tagcache_shutdown(void); |
185 | void tagcache_remove_statefile(void); | ||
188 | 186 | ||
189 | void tagcache_screensync_event(void); | 187 | void tagcache_screensync_event(void); |
190 | void tagcache_screensync_enable(bool state); | 188 | void tagcache_screensync_enable(bool state); |