static void evcb_timeout(int fd, short ev_events, void *arg) { AvahiTimeout *t; t = (AvahiTimeout *)arg; t->cb(t, t->userdata); }
static void timeout_callback(pa_mainloop_api*a, pa_time_event* e, const struct timeval *tv, void *userdata) { AvahiTimeout *t = userdata; pa_assert(a); pa_assert(e); pa_assert(t); t->callback(t, t->userdata); }
/* timer cb (cancel + release) */ static void gcdpollcb_timer(void *arg) { AvahiTimeout *t; t = (AvahiTimeout *)arg; if (t->timer) { dispatch_source_cancel(t->timer); dispatch_release(t->timer); t->timer = NULL; } t->cb(t, t->userdata); }