diff options
Diffstat (limited to 'bus')
-rw-r--r-- | bus/dir-watch-default.c | 2 | ||||
-rw-r--r-- | bus/dir-watch-dnotify.c | 2 | ||||
-rw-r--r-- | bus/dir-watch-kqueue.c | 4 | ||||
-rw-r--r-- | bus/dir-watch.h | 4 |
4 files changed, 7 insertions, 5 deletions
diff --git a/bus/dir-watch-default.c b/bus/dir-watch-default.c index 5dc159ca..b73c6175 100644 --- a/bus/dir-watch-default.c +++ b/bus/dir-watch-default.c @@ -35,6 +35,6 @@ bus_drop_all_directory_watches (void) } void -bus_watch_directory (const char *dir, void *userdata) +bus_watch_directory (const char *dir, BusContext *context) { } diff --git a/bus/dir-watch-dnotify.c b/bus/dir-watch-dnotify.c index 87e32761..988ef384 100644 --- a/bus/dir-watch-dnotify.c +++ b/bus/dir-watch-dnotify.c @@ -38,7 +38,7 @@ static int fds[MAX_DIRS_TO_WATCH]; static int num_fds = 0; void -bus_watch_directory (const char *dir, void *userdata) +bus_watch_directory (const char *dir, BusContext *context) { int fd; diff --git a/bus/dir-watch-kqueue.c b/bus/dir-watch-kqueue.c index b08fd39f..52f00102 100644 --- a/bus/dir-watch-kqueue.c +++ b/bus/dir-watch-kqueue.c @@ -87,7 +87,7 @@ _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data) } void -bus_watch_directory (const char *dir, void *userdata) +bus_watch_directory (const char *dir, BusContext *context) { int fd; struct kevent ev; @@ -104,7 +104,7 @@ bus_watch_directory (const char *dir, void *userdata) goto out; } - loop = userdata; + loop = bus_context_get_loop (context); watch = _dbus_watch_new (kq, DBUS_WATCH_READABLE, TRUE, _handle_kqueue_watch, NULL, NULL); diff --git a/bus/dir-watch.h b/bus/dir-watch.h index 3b754261..263ee035 100644 --- a/bus/dir-watch.h +++ b/bus/dir-watch.h @@ -21,11 +21,13 @@ * */ +#include "bus.h" + #ifndef DIR_WATCH_H #define DIR_WATCH_H /* setup a watch on a directory (OS dependent, may be a NOP) */ -void bus_watch_directory (const char *directory, void *userdata); +void bus_watch_directory (const char *directory, BusContext *context); /* drop all the watches previously set up by bus_config_watch_directory (OS dependent, may be a NOP) */ void bus_drop_all_directory_watches (void); |