database: pass database file name to db_init()

Don't include conf.h in database.c.
This commit is contained in:
Max Kellermann
2009-01-18 16:09:01 +01:00
parent 004dfddca3
commit c2cc3b4923
3 changed files with 45 additions and 40 deletions

View File

@@ -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);