From 29030b54c98b0aee65fbc10ebf7ba36bed98c02c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 18:02:44 +0200 Subject: util/Error: new error passing library Replaces GLib's GError. --- src/InputPlugin.hxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/InputPlugin.hxx') 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 -#include 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 ¶m, GError **error_r); + bool (*init)(const config_param ¶m, 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 -- cgit v1.2.3