Home | History | Annotate | Download | only in bus

Lines Matching defs:watch

2 /* dir-watch-kqueue.c  OS specific directory change notification for message bus
33 #include <dbus/dbus-watch.h>
36 #include "dir-watch.h"
43 static DBusWatch *watch = NULL;
47 _kqueue_watch_callback (DBusWatch *watch, unsigned int condition, void *data)
49 return dbus_watch_handle (watch, condition);
53 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data)
75 if (watch != NULL)
77 _dbus_loop_remove_watch (loop, watch, _kqueue_watch_callback, NULL);
78 _dbus_watch_unref (watch);
79 watch = NULL;
109 watch = _dbus_watch_new (kq, DBUS_WATCH_READABLE, TRUE,
112 if (watch == NULL)
114 _dbus_warn ("Unable to create kqueue watch\n");
120 if (!_dbus_loop_add_watch (loop, watch, _kqueue_watch_callback,
123 _dbus_warn ("Unable to add reload watch to main loop");
126 _dbus_watch_unref (watch);
127 watch = NULL;
134 _dbus_warn ("Cannot watch config directory '%s'. Already watching %d directories\n", dir, MAX_DIRS_TO_WATCH);
155 _dbus_verbose ("Added kqueue watch on config directory '%s'\n", dir);
172 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);