diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-10-12 02:37:08 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-10-12 02:37:08 +0000 |
commit | bb14e0a8aa3173c8a6d80b1a9c8b300a452ee9f1 (patch) | |
tree | d29ec90346b7523aa877207ae29e461b767460c6 /avahi-client/client-test.c | |
parent | 7484feb19b10878042dcb8cea618d10df5440c1c (diff) |
* drop AVAHI_RESOLVER_TIMEOUT, AVAHI_RESOLVER_NOT_FOUND and AVAHI_BROWSER_NOT_FOUND, use AVAHI_xxx_FAILURE instead
* set the client/server errno variable when AVAHI_xxx_FAILURE happens
* update DBUS interface accordingly, pass errno value with Failure events
* Pass DNS return codes to the app by wrapping them in avahi error codes
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@732 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client/client-test.c')
-rw-r--r-- | avahi-client/client-test.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/avahi-client/client-test.c b/avahi-client/client-test.c index 15af93f..c7789ba 100644 --- a/avahi-client/client-test.c +++ b/avahi-client/client-test.c @@ -71,8 +71,7 @@ static void avahi_service_resolver_callback( char addr[64]; char *txtr; - if (event == AVAHI_RESOLVER_TIMEOUT) - { + if (event == AVAHI_RESOLVER_FAILURE) { printf ("SERVICE-RESOLVER: ServiceResolver %p timed out (%s %s)\n", (void*) r, name, type); return; } @@ -129,8 +128,7 @@ static void avahi_address_resolver_callback ( void *userdata) { char addr[64]; - if (event == AVAHI_RESOLVER_TIMEOUT) - { + if (event == AVAHI_RESOLVER_FAILURE) { printf ("ADDRESS-RESOLVER: Callback on AddressResolver, timed out.\n"); return; } @@ -152,8 +150,7 @@ static void avahi_host_name_resolver_callback ( AvahiAddressResolver *ar; char addr[64]; - if (event == AVAHI_RESOLVER_TIMEOUT) - { + if (event == AVAHI_RESOLVER_FAILURE) { printf ("HOST-NAME-RESOLVER: Callback on HostNameResolver, timed out.\n"); return; } |