From c2cc3b4923684cb00518e7b8db25a9b56c60dc9d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 18 Jan 2009 16:09:01 +0100 Subject: database: pass database file name to db_init() Don't include conf.h in database.c. --- src/database.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/database.h') diff --git a/src/database.h b/src/database.h index f0f225108..bb2ccce70 100644 --- a/src/database.h +++ b/src/database.h @@ -27,9 +27,11 @@ struct directory; /** * Initialize the database library. + * + * @param path the absolute path of the database file */ void -db_init(void); +db_init(const char *path); void db_finish(void); @@ -37,12 +39,8 @@ db_finish(void); /** * Clear the database. */ -static inline void -db_clear(void) -{ - db_finish(); - db_init(); -} +void +db_clear(void); struct directory * db_get_root(void); -- cgit v1.2.3