diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 10:53:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-30 11:03:44 +0100 |
commit | 4ad7456428913f5232768367f2c0694bcb4540bb (patch) | |
tree | 213a06a779ca285f6cec035cb3385bd0b96d0164 /src/InotifySource.cxx | |
parent | 73f36858bb4026eff7c9e44007c87e870d324a5f (diff) | |
download | mpd-4ad7456428913f5232768367f2c0694bcb4540bb.tar.gz mpd-4ad7456428913f5232768367f2c0694bcb4540bb.tar.xz mpd-4ad7456428913f5232768367f2c0694bcb4540bb.zip |
event/SocketMonitor: OnSocketReady() returns bool
Diffstat (limited to 'src/InotifySource.cxx')
-rw-r--r-- | src/InotifySource.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/InotifySource.cxx b/src/InotifySource.cxx index 5da32c9bd..5552ed578 100644 --- a/src/InotifySource.cxx +++ b/src/InotifySource.cxx @@ -41,7 +41,7 @@ mpd_inotify_quark(void) return g_quark_from_static_string("inotify"); } -void +bool InotifySource::OnSocketReady(gcc_unused unsigned flags) { void *dest; @@ -79,6 +79,8 @@ InotifySource::OnSocketReady(gcc_unused unsigned flags) callback(event->wd, event->mask, name, callback_ctx); fifo_buffer_consume(buffer, sizeof(*event) + event->len); } + + return true; } inline |