Lines Matching refs:client

57     AvahiClient *client;  in retrieve_state()  local
62 client = group->client; in retrieve_state()
65 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in retrieve_state()
69 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in retrieve_state()
71 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in retrieve_state()
77 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in retrieve_state()
88 r = avahi_client_set_dbus_error(client, &error); in retrieve_state()
101 AvahiEntryGroup* avahi_entry_group_new (AvahiClient *client, AvahiEntryGroupCallback callback, void… in avahi_entry_group_new() argument
108 assert(client); in avahi_entry_group_new()
112 if (!avahi_client_is_connected(client)) { in avahi_entry_group_new()
113 avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_new()
118 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_new()
122 group->client = client; in avahi_entry_group_new()
127 AVAHI_LLIST_PREPEND(AvahiEntryGroup, groups, client->groups, group); in avahi_entry_group_new()
134 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_new()
138 if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || in avahi_entry_group_new()
140 avahi_client_set_errno (client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_new()
146 avahi_client_set_errno (client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_new()
154 avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_new()
159 avahi_client_set_errno(client, state); in avahi_entry_group_new()
172 avahi_client_set_dbus_error(client, &error); in avahi_entry_group_new()
192 AvahiClient *client; in entry_group_simple_method_call() local
197 client = group->client; in entry_group_simple_method_call()
200 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in entry_group_simple_method_call()
204 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in entry_group_simple_method_call()
206 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in entry_group_simple_method_call()
212 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in entry_group_simple_method_call()
223 r = avahi_client_set_dbus_error(client, &error); in entry_group_simple_method_call()
237 AvahiClient *client = group->client; in avahi_entry_group_free() local
242 if (group->path && avahi_client_is_connected(client)) in avahi_entry_group_free()
245 AVAHI_LLIST_REMOVE(AvahiEntryGroup, groups, client->groups, group); in avahi_entry_group_free()
257 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_commit()
258 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_commit()
271 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_reset()
272 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_reset()
293 return group->client; in avahi_entry_group_get_client()
301 AvahiClient *client; in avahi_entry_group_is_empty() local
304 client = group->client; in avahi_entry_group_is_empty()
306 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_is_empty()
307 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_is_empty()
312 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_is_empty()
316 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_entry_group_is_empty()
318 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_is_empty()
324 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_is_empty()
335 r = avahi_client_set_dbus_error(client, &error); in avahi_entry_group_is_empty()
417 AvahiClient *client; in avahi_entry_group_add_service_strlst() local
425 client = group->client; in avahi_entry_group_add_service_strlst()
427 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_add_service_strlst()
428 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_add_service_strlst()
439 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_service_strlst()
459 r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_service_strlst()
463 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_entry_group_add_service_strlst()
465 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_service_strlst()
471 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_service_strlst()
483 r = avahi_client_set_dbus_error(client, &error); in avahi_entry_group_add_service_strlst()
535 AvahiClient *client; in avahi_entry_group_add_service_subtype() local
544 client = group->client; in avahi_entry_group_add_service_subtype()
546 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_add_service_subtype()
547 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_add_service_subtype()
555 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_service_subtype()
573 r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_service_subtype()
577 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_entry_group_add_service_subtype()
579 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_service_subtype()
585 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_service_subtype()
597 r = avahi_client_set_dbus_error(client, &error); in avahi_entry_group_add_service_subtype()
646 AvahiClient *client; in avahi_entry_group_update_service_txt_strlst() local
654 client = group->client; in avahi_entry_group_update_service_txt_strlst()
656 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_update_service_txt_strlst()
657 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_update_service_txt_strlst()
665 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_update_service_txt_strlst()
683 r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_update_service_txt_strlst()
687 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_entry_group_update_service_txt_strlst()
689 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_update_service_txt_strlst()
695 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_update_service_txt_strlst()
707 r = avahi_client_set_dbus_error(client, &error); in avahi_entry_group_update_service_txt_strlst()
732 AvahiClient *client; in avahi_entry_group_add_address() local
740 client = group->client; in avahi_entry_group_add_address()
742 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_add_address()
743 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_add_address()
748 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_address()
758 r = avahi_client_set_errno(client, AVAHI_ERR_INVALID_ADDRESS); in avahi_entry_group_add_address()
770 r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_address()
774 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_entry_group_add_address()
776 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_address()
782 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_address()
794 r = avahi_client_set_dbus_error(client, &error); in avahi_entry_group_add_address()
823 AvahiClient *client; in avahi_entry_group_add_record() local
829 client = group->client; in avahi_entry_group_add_record()
831 if (!group->path || !avahi_client_is_connected(group->client)) in avahi_entry_group_add_record()
832 return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); in avahi_entry_group_add_record()
837 r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_record()
855 r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); in avahi_entry_group_add_record()
859 if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || in avahi_entry_group_add_record()
861 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_record()
867 r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); in avahi_entry_group_add_record()
879 r = avahi_client_set_dbus_error(client, &error); in avahi_entry_group_add_record()