#include <watch.h>
Public Attributes | |
void(* | timeout_free )(AvahiTimeout *t) |
AvahiTimeout *(* | timeout_new )(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) |
void(* | timeout_update )(AvahiTimeout *, const struct timeval *tv) |
void * | userdata |
void(* | watch_free )(AvahiWatch *w) |
AvahiWatchEvent(* | watch_get_events )(AvahiWatch *w) |
AvahiWatch *(* | watch_new )(const AvahiPoll *api, int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void *userdata) |
void(* | watch_update )(AvahiWatch *w, AvahiWatchEvent event) |
Defines an abstracted event polling API. This may be used to connect Avahi to other main loops. This is losely based on Unix poll(2). A consumer will call watch_new() for all file descriptors it wants to listen for events on. In addition he can call timeout_new() to define time based events .
AvahiTimeout*(* AvahiPoll::timeout_new)(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) |
Set a wakeup time for the polling loop. The API will call the callback function when the absolute time *tv is reached. If tv is NULL, the timeout is disabled. After the timeout expired the callback function will be called and the timeout is disabled. You can reenable it by calling timeout_update()
void(* AvahiPoll::timeout_update)(AvahiTimeout *, const struct timeval *tv) |
void(* AvahiPoll::watch_free)(AvahiWatch *w) |
AvahiWatch*(* AvahiPoll::watch_new)(const AvahiPoll *api, int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void *userdata) |
void(* AvahiPoll::watch_update)(AvahiWatch *w, AvahiWatchEvent event) |