summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-06 15:00:43 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-06 15:00:43 +0000
commit6f37f0e1126ad3776b80dbd64701f38a58738921 (patch)
tree43d640abb3bde62d7e664b305a1ac069dc8e2325 /examples
parentfbce111b069aa1e4c701ed37ee1d9f6d6cefaac5 (diff)
add new client state AVAHI_CLIENT_FAILURE
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@931 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'examples')
-rw-r--r--examples/client-publish-service.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/client-publish-service.c b/examples/client-publish-service.c
index 7013156..2f126c1 100644
--- a/examples/client-publish-service.c
+++ b/examples/client-publish-service.c
@@ -157,6 +157,13 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN
break;
+ case AVAHI_CLIENT_FAILURE:
+
+ fprintf(stderr, "Client failure: %s\n", avahi_strerror(avahi_client_errno(c)));
+ avahi_simple_poll_quit(simple_poll);
+
+ break;
+
case AVAHI_CLIENT_S_REGISTERING:
;
}