Lines Matching defs:watch
33 #include <dbus/dbus-watch.h>
70 /** TRUE if we will skip a watch next time because it was OOM; becomes
109 DBusWatch *watch;
116 for (watch = _dbus_list_pop_first (watches);
117 watch != NULL;
118 watch = _dbus_list_pop_first (watches))
120 _dbus_watch_unref (watch);
292 DBusWatch *watch)
297 fd = dbus_watch_get_socket (watch);
305 if (!_dbus_list_append (watches, _dbus_watch_ref (watch)))
307 _dbus_watch_unref (watch);
316 dbus_watch_get_flags (watch),
317 dbus_watch_get_enabled (watch)))
336 DBusWatch *watch)
338 refresh_watches_for_fd (loop, NULL, dbus_watch_get_socket (watch));
343 DBusWatch *watch)
352 fd = dbus_watch_get_socket (watch);
365 if (this == watch)
372 /* if that was the last watch for that fd, drop the hash table
386 _dbus_warn ("could not find watch %p to remove\n", watch);
671 /* if a watch was OOM last time, don't wait longer than the OOM
707 DBusWatch *watch = link->data;
709 if (_dbus_watch_get_oom_last_time (watch))
711 _dbus_watch_set_oom_last_time (watch, FALSE);
721 * since we don't know the watch was inactive */
834 DBusWatch *watch = link->data;
838 if (dbus_watch_get_enabled (watch))
842 oom = !dbus_watch_handle (watch, condition);
846 _dbus_watch_set_oom_last_time (watch, TRUE);
852 _dbus_verbose (" Invoked watch, oom = %d\n", oom);