Lines Matching refs:dbus_watch
111 dbus_bool_t sbus_add_watch(DBusWatch *dbus_watch, void *data)
123 fd = dbus_watch_get_unix_fd(dbus_watch);
125 fd = dbus_watch_get_fd(dbus_watch);
140 enabled = dbus_watch_get_enabled(dbus_watch);
141 flags = dbus_watch_get_flags(dbus_watch);
145 watch->dbus_read_watch = dbus_watch;
148 watch->dbus_write_watch = dbus_watch;
150 dbus_watch_set_data(dbus_watch, watch, NULL);
154 sbus_toggle_watch(dbus_watch, data);
182 watch, dbus_watch, fd,
195 void sbus_toggle_watch(DBusWatch *dbus_watch, void *data)
203 enabled = dbus_watch_get_enabled(dbus_watch);
204 flags = dbus_watch_get_flags(dbus_watch);
206 watch_data = dbus_watch_get_data(dbus_watch);
210 "[%p] does not carry watch context?!\n", dbus_watch);
233 fd = dbus_watch_get_unix_fd(dbus_watch);
235 fd = dbus_watch_get_fd(dbus_watch);
240 watch, dbus_watch, fd,
251 void sbus_remove_watch(DBusWatch *dbus_watch, void *data)
256 watch_data = dbus_watch_get_data(dbus_watch);
259 DEBUG(SSSDBG_TRACE_INTERNAL, "%p/%p\n", watch, dbus_watch);
267 dbus_watch_set_data(dbus_watch, NULL, NULL);
270 if (watch->dbus_read_watch == dbus_watch) {
273 if (watch->dbus_write_watch == dbus_watch) {