summaryrefslogtreecommitdiffstats
path: root/bus/dir-watch-kqueue.c
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-10-19 19:43:05 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-10-19 19:43:05 +0000
commitfe1f793a4f8296fb00d409a4a52b12ed7526caac (patch)
tree7368703202421dc436a438389261c43bb1233b4e /bus/dir-watch-kqueue.c
parenteb357c5ff9a36bafe608707a7df933fe228d2ba6 (diff)
* bus/dir-watch-default.c, bus/dir-watch-dnotify.c,
bus/dir-watch-kqueue.c (bus_watch_directory): Pass in a BusContext instead of a void *. kqueue uses this to get the context's loop while the other modules ignore the parameter. This allows us to avoid platform conditionals * bus/bus.c (process_config_postinit): Pass in the context to the watch
Diffstat (limited to 'bus/dir-watch-kqueue.c')
-rw-r--r--bus/dir-watch-kqueue.c4
1 files changed, 2 insertions, 2 deletions
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);