diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 8 |
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 @@ | |||
135 | /* ASCII dumpfile of the DB contents. */ | 135 | /* ASCII dumpfile of the DB contents. */ |
136 | #define TAGCACHE_FILE_CHANGELOG ROCKBOX_DIR "/database_changelog.txt" | 136 | #define TAGCACHE_FILE_CHANGELOG ROCKBOX_DIR "/database_changelog.txt" |
137 | 137 | ||
138 | /* Serialized DB. */ | ||
139 | #define TAGCACHE_STATEFILE ROCKBOX_DIR "/database_state.tcd" | ||
140 | |||
138 | /* Flags */ | 141 | /* Flags */ |
139 | #define FLAG_DELETED 0x0001 /* Entry has been removed from db */ | 142 | #define FLAG_DELETED 0x0001 /* Entry has been removed from db */ |
140 | #define FLAG_DIRCACHE 0x0002 /* Filename is a dircache pointer */ | 143 | #define FLAG_DIRCACHE 0x0002 /* Filename is a dircache pointer */ |
@@ -5009,6 +5012,11 @@ void tagcache_shutdown(void) | |||
5009 | #endif | 5012 | #endif |
5010 | } | 5013 | } |
5011 | 5014 | ||
5015 | void tagcache_remove_statefile(void) | ||
5016 | { | ||
5017 | remove(TAGCACHE_STATEFILE); | ||
5018 | } | ||
5019 | |||
5012 | static int get_progress(void) | 5020 | static int get_progress(void) |
5013 | { | 5021 | { |
5014 | int total_count = -1; | 5022 | int total_count = -1; |