aboutsummaryrefslogtreecommitdiffstats
path: root/src/InputPlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 18:02:44 +0200
committerMax Kellermann <max@duempel.org>2013-09-04 18:14:22 +0200
commit29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch)
tree79766830b55ebca38ddbce84d8d548227eedb69e /src/InputPlugin.hxx
parentc9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff)
downloadmpd-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/InputPlugin.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/InputPlugin.hxx b/src/InputPlugin.hxx
index 0b3207c17..df6196f85 100644
--- a/src/InputPlugin.hxx
+++ b/src/InputPlugin.hxx
@@ -23,10 +23,10 @@
#include "InputLegacy.hxx"
#include <stddef.h>
-#include <sys/types.h>
struct config_param;
struct input_stream;
+class Error;
struct input_plugin {
const char *name;
@@ -39,7 +39,7 @@ struct input_plugin {
* @return true on success, false if the plugin should be
* disabled
*/
- bool (*init)(const config_param &param, GError **error_r);
+ bool (*init)(const config_param &param, Error &error);
/**
* Global deinitialization. Called once before MPD shuts
@@ -49,7 +49,7 @@ struct input_plugin {
struct input_stream *(*open)(const char *uri,
Mutex &mutex, Cond &cond,
- GError **error_r);
+ Error &error);
void (*close)(struct input_stream *is);
/**
@@ -58,7 +58,7 @@ struct input_plugin {
*
* @return false on error
*/
- bool (*check)(struct input_stream *is, GError **error_r);
+ bool (*check)(struct input_stream *is, Error &error);
/**
* Update the public attributes. Call before access. Can be
@@ -79,10 +79,10 @@ struct input_plugin {
bool (*available)(struct input_stream *is);
size_t (*read)(struct input_stream *is, void *ptr, size_t size,
- GError **error_r);
+ Error &error);
bool (*eof)(struct input_stream *is);
bool (*seek)(struct input_stream *is, goffset offset, int whence,
- GError **error_r);
+ Error &error);
};
#endif