aboutsummaryrefslogtreecommitdiffstats
path: root/src/MixerControl.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/MixerControl.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 'src/MixerControl.hxx')
-rw-r--r--src/MixerControl.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/MixerControl.hxx b/src/MixerControl.hxx
index cf609e817..c1ee01eec 100644
--- a/src/MixerControl.hxx
+++ b/src/MixerControl.hxx
@@ -25,8 +25,7 @@
#ifndef MPD_MIXER_CONTROL_HXX
#define MPD_MIXER_CONTROL_HXX
-#include "gerror.h"
-
+class Error;
class Mixer;
struct mixer_plugin;
struct config_param;
@@ -34,13 +33,13 @@ struct config_param;
Mixer *
mixer_new(const struct mixer_plugin *plugin, void *ao,
const config_param &param,
- GError **error_r);
+ Error &error);
void
mixer_free(Mixer *mixer);
bool
-mixer_open(Mixer *mixer, GError **error_r);
+mixer_open(Mixer *mixer, Error &error);
void
mixer_close(Mixer *mixer);
@@ -53,9 +52,9 @@ void
mixer_auto_close(Mixer *mixer);
int
-mixer_get_volume(Mixer *mixer, GError **error_r);
+mixer_get_volume(Mixer *mixer, Error &error);
bool
-mixer_set_volume(Mixer *mixer, unsigned volume, GError **error_r);
+mixer_set_volume(Mixer *mixer, unsigned volume, Error &error);
#endif