Lines Matching defs:timeout
223 static void update_timeout(TimeoutData *timeout) {
224 assert(timeout);
225 assert(timeout->ref >= 1);
227 if (dbus_timeout_get_enabled(timeout->dbus_timeout)) {
229 avahi_elapse_time(&tv, dbus_timeout_get_interval(timeout->dbus_timeout), 0);
230 timeout->poll_api->timeout_update(timeout->
233 timeout->poll_api->timeout_update(timeout->avahi_timeout, NULL);
238 TimeoutData *timeout = userdata;
241 assert(timeout);
243 timeout_data_ref(timeout);
245 dbus_timeout_handle(timeout->dbus_timeout);
248 if (timeout->avahi_timeout)
249 update_timeout(timeout);
251 timeout_data_unref(timeout);
255 TimeoutData *timeout;
263 if (!(timeout = avahi_new(TimeoutData, 1)))
266 timeout->dbus_timeout = dbus_timeout;
267 timeout->poll_api = d->poll_api;
268 timeout->ref = 1;
273 if (!(timeout->avahi_timeout = d->poll_api->timeout_new(
277 timeout))) {
278 avahi_free(timeout);
282 dbus_timeout_set_data(dbus_timeout, timeout, (DBusFreeFunction) timeout_data_unref);
288 TimeoutData *timeout;
293 timeout = dbus_timeout_get_data(dbus_timeout);
294 assert(timeout);
296 d->poll_api->timeout_free(timeout->avahi_timeout);
297 timeout->avahi_timeout = NULL;
301 TimeoutData *timeout;
304 timeout = dbus_timeout_get_data(dbus_timeout);
305 assert(timeout);
307 update_timeout(timeout);