Logo Search packages:      
Sourcecode: avahi version File versions

int avahi_entry_group_commit ( AvahiEntryGroup  ) 

Commit an AvahiEntryGroup. The entries in the entry group are now registered on the network. Commiting empty entry groups is considered an error.

Definition at line 255 of file entrygroup.c.

References AVAHI_ERR_BAD_STATE.

                                                     {
    int ret;
    assert(group);
    
    if (!group->path || !avahi_client_is_connected(group->client))
        return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE);

    if ((ret = entry_group_simple_method_call(group, "Commit")) < 0)
        return ret;

    group->state_valid = 0;
    return ret;
}


Generated by  Doxygen 1.6.0   Back to index