summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index b9960f2ad0..c638665def 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -135,6 +135,9 @@
/* ASCII dumpfile of the DB contents. */
#define TAGCACHE_FILE_CHANGELOG ROCKBOX_DIR "/database_changelog.txt"
+/* Serialized DB. */
+#define TAGCACHE_STATEFILE ROCKBOX_DIR "/database_state.tcd"
+
/* Flags */
#define FLAG_DELETED 0x0001 /* Entry has been removed from db */
#define FLAG_DIRCACHE 0x0002 /* Filename is a dircache pointer */
@@ -5009,6 +5012,11 @@ void tagcache_shutdown(void)
#endif
}
+void tagcache_remove_statefile(void)
+{
+ remove(TAGCACHE_STATEFILE);
+}
+
static int get_progress(void)
{
int total_count = -1;