database: db_init() initializes library, does not update

For updating the database, directory_update_init() should be called
explicitly.
This commit is contained in:
Max Kellermann
2009-01-04 21:18:16 +01:00
parent 6acba73509
commit 82166b715c
3 changed files with 25 additions and 9 deletions

View File

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