Lines Matching refs:api
66 AvahiPoll api;
134 static AvahiWatch* watch_new(const AvahiPoll *api, int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void *userdata) {
138 assert(api);
142 s = api->userdata;
246 static AvahiTimeout* timeout_new(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) {
250 assert(api);
253 s = api->userdata;
334 s->api.userdata = s;
336 s->api.watch_new = watch_new;
337 s->api.watch_free = watch_free;
338 s->api.watch_update = watch_update;
339 s->api.watch_get_events = watch_get_events;
341 s->api.timeout_new = timeout_new;
342 s->api.timeout_free = timeout_free;
343 s->api.timeout_update = timeout_update;
615 return &s->api;