aboutsummaryrefslogtreecommitdiffstats
path: root/src/FilterInternal.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/FilterInternal.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/FilterInternal.hxx')
-rw-r--r--src/FilterInternal.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FilterInternal.hxx b/src/FilterInternal.hxx
index 103687b61..ab648af1e 100644
--- a/src/FilterInternal.hxx
+++ b/src/FilterInternal.hxx
@@ -25,7 +25,10 @@
#ifndef MPD_FILTER_INTERNAL_HXX
#define MPD_FILTER_INTERNAL_HXX
+#include <stddef.h>
+
struct AudioFormat;
+class Error;
class Filter {
public:
@@ -43,7 +46,7 @@ public:
* @return the format of outgoing data or
* AudioFormat::Undefined() on error
*/
- virtual AudioFormat Open(AudioFormat &af, GError **error_r) = 0;
+ virtual AudioFormat Open(AudioFormat &af, Error &error) = 0;
/**
* Closes the filter. After that, you may call Open() again.
@@ -65,7 +68,7 @@ public:
*/
virtual const void *FilterPCM(const void *src, size_t src_size,
size_t *dest_size_r,
- GError **error_r) = 0;
+ Error &error) = 0;
};
#endif