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

int avahi_service_resolver_free ( AvahiServiceResolver r )

Free a service resolver object

Definition at line 324 of file resolver.c.

References AVAHI_LLIST_REMOVE, AVAHI_OK, and avahi_service_resolver_free().

Referenced by avahi_client_free(), avahi_service_resolver_free(), and avahi_service_resolver_new().

                                                         {
    AvahiClient *client;
    int ret = AVAHI_OK;

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

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

    AVAHI_LLIST_REMOVE(AvahiServiceResolver, service_resolvers, client->service_resolvers, r);

    avahi_free(r->path);
    avahi_free(r->name);
    avahi_free(r->type);
    avahi_free(r->domain);
    avahi_free(r);

    return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index