Lines Matching refs:ret_error
44 static int init_server(AvahiClient *client, int *ret_error);
305 static int get_server_state(AvahiClient *client, int *ret_error) {
340 if (ret_error)
341 *ret_error = e;
351 static int check_version(AvahiClient *client, int *ret_error) {
420 if (ret_error)
421 *ret_error = e;
431 static int init_server(AvahiClient *client, int *ret_error) {
434 if ((r = check_version(client, ret_error)) < 0)
437 if ((r = get_server_state(client, ret_error)) < 0)
478 AvahiClient *avahi_client_new(const AvahiPoll *poll_api, AvahiClientFlags flags, AvahiClientCallback callback, void *userdata, int *ret_error) {
487 if (ret_error)
488 *ret_error = AVAHI_ERR_NO_MEMORY;
515 if (ret_error)
516 *ret_error = AVAHI_ERR_DBUS_ERROR;
521 if (ret_error)
522 *ret_error = AVAHI_ERR_NO_MEMORY; /* Not optimal */
527 if (ret_error)
528 *ret_error = AVAHI_ERR_NO_MEMORY;
573 if (ret_error)
574 *ret_error = AVAHI_ERR_NO_DAEMON;
585 if (init_server(client, ret_error) < 0)
598 if (ret_error) {
601 *ret_error = AVAHI_ERR_NO_DAEMON;
603 *ret_error = avahi_error_dbus_to_number(error.name);