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/FilterInternal.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/FilterInternal.hxx') 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 + 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 -- cgit v1.2.3