aboutsummaryrefslogtreecommitdiff
path: root/src/DatabaseGlue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 00:24:45 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 01:04:18 +0100
commitd3293b889d20433adede6a248582ce778e1c87b8 (patch)
tree005c50fe1c81aae34aea2cd320e1f12e09a3c3aa /src/DatabaseGlue.hxx
parentb4b0b34e5a131f02f723f40cf9566cc43e37cf85 (diff)
database.h: move prototypes to DatabaseGlue.hxx
Diffstat (limited to 'src/DatabaseGlue.hxx')
-rw-r--r--src/DatabaseGlue.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DatabaseGlue.hxx b/src/DatabaseGlue.hxx
index b38ba595..ea26f324 100644
--- a/src/DatabaseGlue.hxx
+++ b/src/DatabaseGlue.hxx
@@ -23,9 +23,24 @@
#include "gcc.h"
#include "gerror.h"
+struct config_param;
class Database;
/**
+ * Initialize the database library.
+ *
+ * @param param the database configuration block
+ */
+bool
+DatabaseGlobalInit(const config_param *param, GError **error_r);
+
+void
+DatabaseGlobalDeinit(void);
+
+bool
+DatabaseGlobalOpen(GError **error);
+
+/**
* Returns the global #Database instance. May return NULL if this MPD
* configuration has no database (no music_directory was configured).
*/