aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifySource.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/InotifySource.hxx')
-rw-r--r--src/InotifySource.hxx7
1 files changed, 4 insertions, 3 deletions
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.