Lines Matching defs:watch
2 /* dir-watch-kqueue.c OS specific directory change notification for message bus
37 #include <dbus/dbus-watch.h>
41 #include "dir-watch.h"
49 static DBusWatch *watch = NULL;
53 _handle_kqueue_watch (DBusWatch *watch, unsigned int flags, void *data)
75 if (watch != NULL)
77 _dbus_loop_remove_watch (loop, watch);
78 _dbus_watch_invalidate (watch);
79 _dbus_watch_unref (watch);
80 watch = NULL;
107 watch = _dbus_watch_new (kq, DBUS_WATCH_READABLE, TRUE,
110 if (watch == NULL)
112 _dbus_warn ("Unable to create kqueue watch\n");
118 if (!_dbus_loop_add_watch (loop, watch))
120 _dbus_warn ("Unable to add reload watch to main loop");
121 _dbus_watch_invalidate (watch);
122 _dbus_watch_unref (watch);
123 watch = NULL;
198 /* FIXME - less lame error handling for failing to add a watch;
231 * watch. (In reality though, the whole OOM handling in dbus is