Logo Search packages:      
Sourcecode: avahi version File versions  Download package

void avahi_simple_poll_set_func ( AvahiSimplePoll s,
AvahiPollFunc  func,
void *  userdata 
)

Replace the internally used poll() function. By default the system's poll() will be used

Definition at line 630 of file simple-watch.c.

                                                                                        {
    assert(s);

    s->poll_func = func ? func : system_poll;
    s->poll_func_userdata = func ? userdata : NULL;

    /* If there is a background thread running the poll() for us, tell it to exit the poll() */
    avahi_simple_poll_wakeup(s);
}


Generated by  Doxygen 1.6.0   Back to index