diff options
Diffstat (limited to 'src/database.h')
-rw-r--r-- | src/database.h | 13 |
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); |