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

void avahi_simple_poll_free ( AvahiSimplePoll s  ) 

Free a main loop object

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

                                                {
    assert(s);

    cleanup_timeouts(s, 1);
    cleanup_watches(s, 1);
    assert(s->n_watches == 0);

    avahi_free(s->pollfds);

    if (s->wakeup_pipe[0] >= 0)
        close(s->wakeup_pipe[0]);

    if (s->wakeup_pipe[1] >= 0)
        close(s->wakeup_pipe[1]);

    avahi_free(s);
}


Generated by  Doxygen 1.6.0   Back to index