database: db_init() initializes library, does not update
For updating the database, directory_update_init() should be called explicitly.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user