Lines Matching refs:dbus_watch
116 DBusWatch *dbus_watch = userdata; in watch_callback() local
119 assert(dbus_watch); in watch_callback()
121 dbus_watch_handle(dbus_watch, translate_avahi_to_dbus(events)); in watch_callback()
125 static dbus_bool_t update_watch(const AvahiPoll *poll_api, DBusWatch *dbus_watch) { in update_watch() argument
129 assert(dbus_watch); in update_watch()
131 avahi_watch = dbus_watch_get_data(dbus_watch); in update_watch()
133 b = dbus_watch_get_enabled(dbus_watch); in update_watch()
140 dbus_watch_get_unix_fd(dbus_watch), in update_watch()
142 dbus_watch_get_fd(dbus_watch), in update_watch()
144 translate_dbus_to_avahi(dbus_watch_get_flags(dbus_watch)), in update_watch()
146 dbus_watch))) in update_watch()
149 dbus_watch_set_data(dbus_watch, avahi_watch, NULL); in update_watch()
154 dbus_watch_set_data(dbus_watch, NULL, NULL); in update_watch()
159 poll_api->watch_update(avahi_watch, dbus_watch_get_flags(dbus_watch)); in update_watch()
165 static dbus_bool_t add_watch(DBusWatch *dbus_watch, void *userdata) { in add_watch() argument
168 assert(dbus_watch); in add_watch()
171 return update_watch(d->poll_api, dbus_watch); in add_watch()
174 static void remove_watch(DBusWatch *dbus_watch, void *userdata) { in remove_watch() argument
178 assert(dbus_watch); in remove_watch()
181 if ((avahi_watch = dbus_watch_get_data(dbus_watch))) { in remove_watch()
183 dbus_watch_set_data(dbus_watch, NULL, NULL); in remove_watch()
187 static void watch_toggled(DBusWatch *dbus_watch, void *userdata) { in watch_toggled() argument
190 assert(dbus_watch); in watch_toggled()
193 update_watch(d->poll_api, dbus_watch); in watch_toggled()