1 #ifndef foosimplewatchhfoo 2 #define foosimplewatchhfoo 26 #include <avahi-common/cdecl.h> 63 typedef int (*
AvahiPollFunc)(
struct pollfd *ufds,
unsigned int nfds,
int timeout,
void *userdata);
int avahi_simple_poll_loop(AvahiSimplePoll *s)
Call avahi_simple_poll_iterate() in a loop and return if it returns non-zero.
int avahi_simple_poll_run(AvahiSimplePoll *s)
The second stage of avahi_simple_poll_iterate(), use this function only if you know what you do...
void avahi_simple_poll_free(AvahiSimplePoll *s)
Free a main loop object.
const AvahiPoll * avahi_simple_poll_get(AvahiSimplePoll *s)
Return the abstracted poll API object for this main loop object.
Simplistic main loop abstraction.
void avahi_simple_poll_set_func(AvahiSimplePoll *s, AvahiPollFunc func, void *userdata)
Replace the internally used poll() function.
struct AvahiSimplePoll AvahiSimplePoll
A main loop object.
void avahi_simple_poll_wakeup(AvahiSimplePoll *s)
Wakeup the main loop.
Defines an abstracted event polling API.
int avahi_simple_poll_iterate(AvahiSimplePoll *s, int sleep_time)
Run a single main loop iteration of this main loop.
int(* AvahiPollFunc)(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata)
Prototype for a poll() type function.
void avahi_simple_poll_quit(AvahiSimplePoll *s)
Request that the main loop quits.
int avahi_simple_poll_dispatch(AvahiSimplePoll *s)
The third and final stage of avahi_simple_poll_iterate(), use this function only if you know what you...
int avahi_simple_poll_prepare(AvahiSimplePoll *s, int timeout)
The first stage of avahi_simple_poll_iterate(), use this function only if you know what you do...
AvahiSimplePoll * avahi_simple_poll_new(void)
Create a new main loop object.