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/InotifySource.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/InotifySource.hxx') diff --git a/src/InotifySource.hxx b/src/InotifySource.hxx index e8f9ff03c..2f686d3b1 100644 --- a/src/InotifySource.hxx +++ b/src/InotifySource.hxx @@ -21,9 +21,10 @@ #define MPD_INOTIFY_SOURCE_HXX #include "event/SocketMonitor.hxx" -#include "gerror.h" #include "gcc.h" +class Error; + typedef void (*mpd_inotify_callback_t)(int wd, unsigned mask, const char *name, void *ctx); @@ -46,7 +47,7 @@ public: static InotifySource *Create(EventLoop &_loop, mpd_inotify_callback_t callback, void *ctx, - GError **error_r); + Error &error); ~InotifySource(); @@ -56,7 +57,7 @@ public: * * @return a watch descriptor or -1 on error */ - int Add(const char *path_fs, unsigned mask, GError **error_r); + int Add(const char *path_fs, unsigned mask, Error &error); /** * Removes a path from the notify list. -- cgit v1.2.3