From 4ad7456428913f5232768367f2c0694bcb4540bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 10:53:32 +0100 Subject: event/SocketMonitor: OnSocketReady() returns bool --- src/InotifySource.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/InotifySource.cxx') diff --git a/src/InotifySource.cxx b/src/InotifySource.cxx index 5da32c9b..5552ed57 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 -- cgit v1.2.3