diff options
author | Max Kellermann <max@duempel.org> | 2009-01-18 16:09:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-18 16:09:01 +0100 |
commit | c2cc3b4923684cb00518e7b8db25a9b56c60dc9d (patch) | |
tree | 6f90b4fd00c6a07e90b1f3b555fb9819faebc2de /src/database.h | |
parent | 004dfddca383394426f6d191a43c9a0131cdee34 (diff) | |
download | mpd-c2cc3b4923684cb00518e7b8db25a9b56c60dc9d.tar.gz mpd-c2cc3b4923684cb00518e7b8db25a9b56c60dc9d.tar.xz mpd-c2cc3b4923684cb00518e7b8db25a9b56c60dc9d.zip |
database: pass database file name to db_init()
Don't include conf.h in database.c.
Diffstat (limited to 'src/database.h')
-rw-r--r-- | src/database.h | 12 |
1 files changed, 5 insertions, 7 deletions
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); |