aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/database.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/database.h b/src/database.h
index b6884b604..238ddb374 100644
--- a/src/database.h
+++ b/src/database.h
@@ -24,12 +24,25 @@
struct directory;
+/**
+ * Initialize the database library.
+ */
void
db_init(void);
void
db_finish(void);
+/**
+ * Clear the database.
+ */
+static inline void
+db_clear(void)
+{
+ db_finish();
+ db_init();
+}
+
struct directory *
db_get_root(void);