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/OutputPlugin.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 'src/OutputPlugin.hxx')
-rw-r--r-- | src/OutputPlugin.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/OutputPlugin.hxx b/src/OutputPlugin.hxx index 5be476b68..20fd74453 100644 --- a/src/OutputPlugin.hxx +++ b/src/OutputPlugin.hxx @@ -21,13 +21,13 @@ #define MPD_OUTPUT_PLUGIN_HXX #include "gcc.h" -#include "gerror.h" #include <stddef.h> struct config_param; struct AudioFormat; struct Tag; +class Error; /** * A plugin which controls an audio output device. @@ -56,7 +56,7 @@ struct audio_output_plugin { * data */ struct audio_output *(*init)(const config_param ¶m, - GError **error); + Error &error); /** * Free resources allocated by this device. @@ -73,7 +73,7 @@ struct audio_output_plugin { * NULL to ignore errors * @return true on success, false on error */ - bool (*enable)(struct audio_output *data, GError **error_r); + bool (*enable)(struct audio_output *data, Error &error); /** * Disables the device. It is closed before this method is @@ -90,7 +90,7 @@ struct audio_output_plugin { * to ignore errors */ bool (*open)(struct audio_output *data, AudioFormat &audio_format, - GError **error); + Error &error); /** * Close the device. @@ -122,7 +122,7 @@ struct audio_output_plugin { */ size_t (*play)(struct audio_output *data, const void *chunk, size_t size, - GError **error); + Error &error); /** * Wait until the device has finished playing. @@ -169,20 +169,20 @@ gcc_malloc struct audio_output * ao_plugin_init(const struct audio_output_plugin *plugin, const config_param ¶m, - GError **error); + Error &error); void ao_plugin_finish(struct audio_output *ao); bool -ao_plugin_enable(struct audio_output *ao, GError **error_r); +ao_plugin_enable(struct audio_output *ao, Error &error); void ao_plugin_disable(struct audio_output *ao); bool ao_plugin_open(struct audio_output *ao, AudioFormat &audio_format, - GError **error); + Error &error); void ao_plugin_close(struct audio_output *ao); @@ -196,7 +196,7 @@ ao_plugin_send_tag(struct audio_output *ao, const Tag *tag); size_t ao_plugin_play(struct audio_output *ao, const void *chunk, size_t size, - GError **error); + Error &error); void ao_plugin_drain(struct audio_output *ao); |