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

void avahi_s_entry_group_reset ( AvahiSEntryGroup g  ) 

Remove all entries from the entry group and reset the state to AVAHI_ENTRY_GROUP_UNCOMMITED.

Definition at line 1176 of file entry.c.

References AVAHI_ENTRY_GROUP_UNCOMMITED.

                                                    {
    AvahiEntry *e;
    assert(g);

    for (e = g->entries; e; e = e->by_group_next) {
        if (!e->dead) {
            avahi_goodbye_entry(g->server, e, 1, 1);
            e->dead = 1;
        }
    }
    g->server->need_entry_cleanup = 1;

    g->n_probing = 0;

    avahi_s_entry_group_change_state(g, AVAHI_ENTRY_GROUP_UNCOMMITED);

    schedule_cleanup(g->server);
}


Generated by  Doxygen 1.6.0   Back to index