Lines Matching defs:client
27 libavahi-client-dev
216 #include <avahi-client/client.h>
217 #include <avahi-client/lookup.h>
2403 /* Called whenever the client or server state changes */
2418 AvahiClient *client = NULL;
2432 /* Allocate a new client */
2433 client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, simple_poll, &error);
2435 /* Check whether creating the client object succeeded */
2436 if (!client) {
2437 DBG(min(1,DBG_AUTO), "Failed to create client: %s\n", avahi_strerror(error));
2442 if (!(sb = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_scanner._tcp", NULL, 0, browse_callback, simple_poll))) {
2443 DBG(min(1,DBG_AUTO), "Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client)));
2462 if (client)
2463 avahi_client_free(client);