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

int avahi_entry_group_free ( AvahiEntryGroup  ) 

Clean up and free an AvahiEntryGroup object

Definition at line 236 of file entrygroup.c.

References AVAHI_LLIST_REMOVE, and AVAHI_OK.

                                                   {
    AvahiClient *client = group->client;
    int r = AVAHI_OK;

    assert(group);

    if (group->path && avahi_client_is_connected(client))
        r = entry_group_simple_method_call(group, "Free");

    AVAHI_LLIST_REMOVE(AvahiEntryGroup, groups, client->groups, group);

    avahi_free(group->path);
    avahi_free(group);

    return r;
}


Generated by  Doxygen 1.6.0   Back to index