diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 18:02:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-04 18:14:22 +0200 |
commit | 29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch) | |
tree | 79766830b55ebca38ddbce84d8d548227eedb69e /src/DatabaseGlue.hxx | |
parent | c9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff) | |
download | mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip |
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to '')
-rw-r--r-- | src/DatabaseGlue.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DatabaseGlue.hxx b/src/DatabaseGlue.hxx index e321e0ba8..5e23a8c35 100644 --- a/src/DatabaseGlue.hxx +++ b/src/DatabaseGlue.hxx @@ -21,10 +21,10 @@ #define MPD_DATABASE_GLUE_HXX #include "gcc.h" -#include "gerror.h" struct config_param; class Database; +class Error; /** * Initialize the database library. @@ -32,13 +32,13 @@ class Database; * @param param the database configuration block */ bool -DatabaseGlobalInit(const config_param ¶m, GError **error_r); +DatabaseGlobalInit(const config_param ¶m, Error &error); void DatabaseGlobalDeinit(void); bool -DatabaseGlobalOpen(GError **error); +DatabaseGlobalOpen(Error &error); /** * Returns the global #Database instance. May return NULL if this MPD @@ -54,6 +54,6 @@ GetDatabase(); */ gcc_pure const Database * -GetDatabase(GError **error_r); +GetDatabase(Error &error); #endif |