database.h: move prototypes to DatabaseGlue.hxx

This commit is contained in:
Max Kellermann
2013-01-03 00:24:45 +01:00
parent b4b0b34e5a
commit d3293b889d
5 changed files with 23 additions and 21 deletions

View File

@@ -25,6 +25,7 @@
#include "StateFile.hxx"
#include "PlayerThread.hxx"
#include "Mapper.hxx"
#include "DatabaseGlue.hxx"
extern "C" {
#include "daemon.h"
@@ -186,13 +187,13 @@ glue_db_init_and_load(void)
param = allocated;
}
if (!db_init(param, &error))
if (!DatabaseGlobalInit(param, &error))
MPD_ERROR("%s", error->message);
if (allocated != NULL)
config_param_free(allocated);
ret = db_load(&error);
ret = DatabaseGlobalOpen(&error);
if (!ret)
MPD_ERROR("%s", error->message);
@@ -520,7 +521,7 @@ int mpd_main(int argc, char *argv[])
playlist_global_finish();
start = clock();
db_finish();
DatabaseGlobalDeinit();
g_debug("db_finish took %f seconds",
((float)(clock()-start))/CLOCKS_PER_SEC);