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

int avahi_service_browser_free ( AvahiServiceBrowser  ) 

Cleans up and frees an AvahiServiceBrowser object

Definition at line 691 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_SERVICE_BROWSER, "Free");

    AVAHI_LLIST_REMOVE(AvahiServiceBrowser, service_browsers, b->client->service_browsers, b);

    avahi_free(b->path);
    avahi_free(b->type);
    avahi_free(b->domain);
    avahi_free(b);
    return r;
}


Generated by  Doxygen 1.6.0   Back to index