diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 18:02:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-04 18:14:22 +0200 |
commit | 29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch) | |
tree | 79766830b55ebca38ddbce84d8d548227eedb69e /src/InotifySource.hxx | |
parent | c9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff) | |
download | mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip |
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to 'src/InotifySource.hxx')
-rw-r--r-- | src/InotifySource.hxx | 7 |
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. |