From 98c7505c60714d216814ababe645ed86785f2aec Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 1 Jun 2022 01:22:36 +0100 Subject: 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 --- apps/main.c | 2 +- apps/tagcache.c | 8 ++++++++ apps/tagcache.h | 4 +--- apps/tree.c | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/main.c b/apps/main.c index 6360267243..f86d91e42e 100644 --- a/apps/main.c +++ b/apps/main.c @@ -597,7 +597,7 @@ static void init(void) CHART("" @@ -185,6 +182,7 @@ struct tagcache_stat* tagcache_get_stat(void); int tagcache_get_commit_step(void); bool tagcache_prepare_shutdown(void); void tagcache_shutdown(void); +void tagcache_remove_statefile(void); void tagcache_screensync_event(void); void tagcache_screensync_enable(bool state); diff --git a/apps/tree.c b/apps/tree.c index 4a80591201..1149c19104 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -1265,7 +1265,7 @@ void tree_restore(void) #endif #ifdef HAVE_TC_RAMCACHE - remove(TAGCACHE_STATEFILE); + tagcache_remove_statefile(); #endif #ifdef HAVE_DIRCACHE -- cgit v1.2.3