Logo Search packages:      
Sourcecode: avahi version File versions

int avahi_record_browser_free ( AvahiRecordBrowser  ) 

Cleans up and frees an AvahiRecordBrowser object

Definition at line 910 of file browser.c.

References AVAHI_LLIST_REMOVE, and AVAHI_OK.

                                                      {
    AvahiClient *client;
    int r = AVAHI_OK;

    assert(b);
    client = b->client;

    if (b->path && avahi_client_is_connected(b->client))
        r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "Free");

    AVAHI_LLIST_REMOVE(AvahiRecordBrowser, record_browsers, b->client->record_browsers, b);

    avahi_free(b->path);
    avahi_free(b->name);
    avahi_free(b);
    return r;
}


Generated by  Doxygen 1.6.0   Back to index