Lines Matching refs:client

88     db->client->poll_api->timeout_free(db->defer_timeout);  in defer_timeout_callback()
105 AvahiClient *client, in avahi_domain_browser_new() argument
121 assert(client); in avahi_domain_browser_new()
126 if (!avahi_client_is_connected(client)) { in avahi_domain_browser_new()
127 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_domain_browser_new()
135 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_domain_browser_new()
140 db->client = client; in avahi_domain_browser_new()
149 AVAHI_LLIST_PREPEND(AvahiDomainBrowser, domain_browsers, client->domain_browsers, db); in avahi_domain_browser_new()
151 if (!(client->flags & AVAHI_CLIENT_IGNORE_USER_CONFIG)) { in avahi_domain_browser_new()
159 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_domain_browser_new()
176 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_domain_browser_new()
180 if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || in avahi_domain_browser_new()
182 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_domain_browser_new()
189 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_domain_browser_new()
197 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_domain_browser_new()
204 …if (!(db->defer_timeout = client->poll_api->timeout_new(client->poll_api, &tv, defer_timeout_callb… in avahi_domain_browser_new()
205 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_domain_browser_new()
218 avahi_client_set_dbus_error(client, &error); in avahi_domain_browser_new()
236 return b->client; in avahi_domain_browser_get_client()
240 AvahiClient *client; in avahi_domain_browser_free() local
249 client = b->client; in avahi_domain_browser_free()
251 if (b->path && avahi_client_is_connected(b->client)) in avahi_domain_browser_free()
252 … r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "Free"); in avahi_domain_browser_free()
254 AVAHI_LLIST_REMOVE(AvahiDomainBrowser, domain_browsers, client->domain_browsers, b); in avahi_domain_browser_free()
257 b->client->poll_api->timeout_free(b->defer_timeout); in avahi_domain_browser_free()
266 DBusHandlerResult avahi_domain_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMes… in avahi_domain_browser_event() argument
275 assert(client); in avahi_domain_browser_event()
283 for (db = client->domain_browsers; db; db = db->domain_browsers_next) in avahi_domain_browser_event()
327 avahi_client_set_errno(db->client, avahi_error_dbus_to_number(etxt)); in avahi_domain_browser_event()
351 AvahiClient *client, in avahi_service_type_browser_new() argument
366 assert(client); in avahi_service_type_browser_new()
371 if (!avahi_client_is_connected(client)) { in avahi_service_type_browser_new()
372 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_service_type_browser_new()
380 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_type_browser_new()
384 b->client = client; in avahi_service_type_browser_new()
392 …AVAHI_LLIST_PREPEND(AvahiServiceTypeBrowser, service_type_browsers, client->service_type_browsers,… in avahi_service_type_browser_new()
396 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_type_browser_new()
401 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_type_browser_new()
416 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_type_browser_new()
420 if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || in avahi_service_type_browser_new()
422 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_service_type_browser_new()
429 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_service_type_browser_new()
437 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_type_browser_new()
449 avahi_client_set_dbus_error(client, &error); in avahi_service_type_browser_new()
467 return b->client; in avahi_service_type_browser_get_client()
471 AvahiClient *client; in avahi_service_type_browser_free() local
475 client = b->client; in avahi_service_type_browser_free()
477 if (b->path && avahi_client_is_connected(b->client)) in avahi_service_type_browser_free()
478 …r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "F… in avahi_service_type_browser_free()
480 …AVAHI_LLIST_REMOVE(AvahiServiceTypeBrowser, service_type_browsers, b->client->service_type_browser… in avahi_service_type_browser_free()
488 DBusHandlerResult avahi_service_type_browser_event (AvahiClient *client, AvahiBrowserEvent event, D… in avahi_service_type_browser_event() argument
496 assert(client); in avahi_service_type_browser_event()
504 for (b = client->service_type_browsers; b; b = b->service_type_browsers_next) in avahi_service_type_browser_event()
548 avahi_client_set_errno(b->client, avahi_error_dbus_to_number(etxt)); in avahi_service_type_browser_event()
565 AvahiClient *client, in avahi_service_browser_new() argument
581 assert(client); in avahi_service_browser_new()
587 if (!avahi_client_is_connected(client)) { in avahi_service_browser_new()
588 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_service_browser_new()
596 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_browser_new()
600 b->client = client; in avahi_service_browser_new()
608 AVAHI_LLIST_PREPEND(AvahiServiceBrowser, service_browsers, client->service_browsers, b); in avahi_service_browser_new()
611 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_browser_new()
617 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_browser_new()
622 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_browser_new()
638 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_browser_new()
642 if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || in avahi_service_browser_new()
644 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_service_browser_new()
651 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_service_browser_new()
659 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_service_browser_new()
670 avahi_client_set_dbus_error(client, &error); in avahi_service_browser_new()
688 return b->client; in avahi_service_browser_get_client()
692 AvahiClient *client; in avahi_service_browser_free() local
696 client = b->client; in avahi_service_browser_free()
698 if (b->path && avahi_client_is_connected(b->client)) in avahi_service_browser_free()
699 …r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "Free"); in avahi_service_browser_free()
701 AVAHI_LLIST_REMOVE(AvahiServiceBrowser, service_browsers, b->client->service_browsers, b); in avahi_service_browser_free()
710 DBusHandlerResult avahi_service_browser_event(AvahiClient *client, AvahiBrowserEvent event, DBusMes… in avahi_service_browser_event() argument
723 for (b = client->service_browsers; b; b = b->service_browsers_next) in avahi_service_browser_event()
770 avahi_client_set_errno(b->client, avahi_error_dbus_to_number(etxt)); in avahi_service_browser_event()
787 AvahiClient *client, in avahi_record_browser_new() argument
804 assert(client); in avahi_record_browser_new()
810 if (!avahi_client_is_connected(client)) { in avahi_record_browser_new()
811 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_record_browser_new()
816 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_record_browser_new()
820 b->client = client; in avahi_record_browser_new()
830 AVAHI_LLIST_PREPEND(AvahiRecordBrowser, record_browsers, client->record_browsers, b); in avahi_record_browser_new()
833 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_record_browser_new()
838 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_record_browser_new()
855 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_record_browser_new()
859 if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || in avahi_record_browser_new()
861 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_record_browser_new()
868 avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_record_browser_new()
876 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_record_browser_new()
887 avahi_client_set_dbus_error(client, &error); in avahi_record_browser_new()
905 return b->client; in avahi_record_browser_get_client()
909 AvahiClient *client; in avahi_record_browser_free() local
913 client = b->client; in avahi_record_browser_free()
915 if (b->path && avahi_client_is_connected(b->client)) in avahi_record_browser_free()
916 … r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "Free"); in avahi_record_browser_free()
918 AVAHI_LLIST_REMOVE(AvahiRecordBrowser, record_browsers, b->client->record_browsers, b); in avahi_record_browser_free()
926 DBusHandlerResult avahi_record_browser_event(AvahiClient *client, AvahiBrowserEvent event, DBusMess… in avahi_record_browser_event() argument
942 for (b = client->record_browsers; b; b = b->record_browsers_next) in avahi_record_browser_event()
1013 avahi_client_set_errno(b->client, avahi_error_dbus_to_number(etxt)); in avahi_record_browser_event()