diff options
author | Max Kellermann <max@duempel.org> | 2013-01-15 18:18:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-15 18:18:34 +0100 |
commit | 707112677065dd59f638764bb9dbd64d200b8a85 (patch) | |
tree | 10b5f2461c43fa5f847df23abccd9ada00e6b237 /test | |
parent | 2101daef5a939d41a306fcccf2d94992f82723e2 (diff) | |
download | mpd-707112677065dd59f638764bb9dbd64d200b8a85.tar.gz mpd-707112677065dd59f638764bb9dbd64d200b8a85.tar.xz mpd-707112677065dd59f638764bb9dbd64d200b8a85.zip |
InotifySource: use the SocketMonitor class
Diffstat (limited to 'test')
-rw-r--r-- | test/run_inotify.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/run_inotify.cxx b/test/run_inotify.cxx index 92790a3a3..29fcf70ab 100644 --- a/test/run_inotify.cxx +++ b/test/run_inotify.cxx @@ -61,7 +61,10 @@ int main(int argc, char **argv) path = argv[1]; - InotifySource *source = InotifySource::Create(my_inotify_callback, + event_loop = new EventLoop(EventLoop::Default()); + + InotifySource *source = InotifySource::Create(*event_loop, + my_inotify_callback, nullptr, &error); if (source == NULL) { g_warning("%s", error->message); @@ -77,8 +80,6 @@ int main(int argc, char **argv) return 2; } - event_loop = new EventLoop(EventLoop::Default()); - struct sigaction sa; sa.sa_flags = 0; sigemptyset(&sa.sa_mask); |