Lines Matching refs:client

41 DBusHandlerResult avahi_service_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBus…  in avahi_service_resolver_event()  argument
47 assert(client); in avahi_service_resolver_event()
55 for (r = client->service_resolvers; r; r = r->service_resolvers_next) in avahi_service_resolver_event()
164 avahi_client_set_errno(r->client, avahi_error_dbus_to_number(etxt)); in avahi_service_resolver_event()
180 AvahiClient *client, in avahi_service_resolver_new() argument
198 assert(client); in avahi_service_resolver_new()
209 if (!avahi_client_is_connected(client)) { in avahi_service_resolver_new()
210 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_service_resolver_new()
215 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
219 r->client = client; in avahi_service_resolver_new()
227 AVAHI_LLIST_PREPEND(AvahiServiceResolver, service_resolvers, client->service_resolvers, r); in avahi_service_resolver_new()
231 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
236 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
242 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
248 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
267 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
271 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_service_resolver_new()
273 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_service_resolver_new()
280 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_service_resolver_new()
288 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_resolver_new()
301 avahi_client_set_dbus_error(client, &error); in avahi_service_resolver_new()
321 return r->client; in avahi_service_resolver_get_client()
325 AvahiClient *client; in avahi_service_resolver_free() local
329 client = r->client; in avahi_service_resolver_free()
331 if (r->path && avahi_client_is_connected(client)) in avahi_service_resolver_free()
332 …ret = avahi_client_simple_method_call(client, r->path, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, "Fre… in avahi_service_resolver_free()
334 AVAHI_LLIST_REMOVE(AvahiServiceResolver, service_resolvers, client->service_resolvers, r); in avahi_service_resolver_free()
347 DBusHandlerResult avahi_host_name_resolver_event (AvahiClient *client, AvahiResolverEvent event, DB… in avahi_host_name_resolver_event() argument
352 assert(client); in avahi_host_name_resolver_event()
360 for (r = client->host_name_resolvers; r; r = r->host_name_resolvers_next) in avahi_host_name_resolver_event()
410 avahi_client_set_errno(r->client, avahi_error_dbus_to_number(etxt)); in avahi_host_name_resolver_event()
425 AvahiClient *client, in avahi_host_name_resolver_new() argument
441 assert(client); in avahi_host_name_resolver_new()
446 if (!avahi_client_is_connected(client)) { in avahi_host_name_resolver_new()
447 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_host_name_resolver_new()
452 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_host_name_resolver_new()
456 r->client = client; in avahi_host_name_resolver_new()
464 AVAHI_LLIST_PREPEND(AvahiHostNameResolver, host_name_resolvers, client->host_name_resolvers, r); in avahi_host_name_resolver_new()
467 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_host_name_resolver_new()
472 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_host_name_resolver_new()
489 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_host_name_resolver_new()
493 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_host_name_resolver_new()
495 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_host_name_resolver_new()
502 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_host_name_resolver_new()
510 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_host_name_resolver_new()
522 avahi_client_set_dbus_error(client, &error); in avahi_host_name_resolver_new()
541 AvahiClient *client; in avahi_host_name_resolver_free() local
544 client = r->client; in avahi_host_name_resolver_free()
546 if (r->path && avahi_client_is_connected(client)) in avahi_host_name_resolver_free()
547 …ret = avahi_client_simple_method_call(client, r->path, AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER, "F… in avahi_host_name_resolver_free()
549 AVAHI_LLIST_REMOVE(AvahiHostNameResolver, host_name_resolvers, client->host_name_resolvers, r); in avahi_host_name_resolver_free()
561 return r->client; in avahi_host_name_resolver_get_client()
566 DBusHandlerResult avahi_address_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBus… in avahi_address_resolver_event() argument
571 assert(client); in avahi_address_resolver_event()
579 for (r = client->address_resolvers; r; r = r->address_resolvers_next) in avahi_address_resolver_event()
629 avahi_client_set_errno(r->client, avahi_error_dbus_to_number(etxt)); in avahi_address_resolver_event()
643 AvahiClient *client, in avahi_address_resolver_new() argument
659 assert(client); in avahi_address_resolver_new()
665 avahi_client_set_errno(client, AVAHI_ERR_INVALID_ADDRESS); in avahi_address_resolver_new()
669 if (!avahi_client_is_connected(client)) { in avahi_address_resolver_new()
670 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_address_resolver_new()
675 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_address_resolver_new()
679 r->client = client; in avahi_address_resolver_new()
687 AVAHI_LLIST_PREPEND(AvahiAddressResolver, address_resolvers, client->address_resolvers, r); in avahi_address_resolver_new()
690 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_address_resolver_new()
705 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_address_resolver_new()
709 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_address_resolver_new()
711 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_address_resolver_new()
718 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_address_resolver_new()
726 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_address_resolver_new()
738 avahi_client_set_dbus_error(client, &error); in avahi_address_resolver_new()
758 return r->client; in avahi_address_resolver_get_client()
762 AvahiClient *client; in avahi_address_resolver_free() local
766 client = r->client; in avahi_address_resolver_free()
768 if (r->path && avahi_client_is_connected(client)) in avahi_address_resolver_free()
769 …ret = avahi_client_simple_method_call(client, r->path, AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER, "Fre… in avahi_address_resolver_free()
771 AVAHI_LLIST_REMOVE(AvahiAddressResolver, address_resolvers, client->address_resolvers, r); in avahi_address_resolver_free()