From: Lennart Poettering Date: Sat, 10 Sep 2005 00:54:29 +0000 (+0000) Subject: update examples to make use of avahi_string_list_get_service_cookie() for whatever... X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=b6306c88b9279d8194afa85a6497c39531b3bfa9;p=catta update examples to make use of avahi_string_list_get_service_cookie() for whatever it is worth git-svn-id: file:///home/lennart/svn/public/avahi/trunk@558 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c index 80fa934..916b12b 100644 --- a/examples/client-browse-services.c +++ b/examples/client-browse-services.c @@ -64,7 +64,7 @@ static void resolve_callback( avahi_address_snprint(a, sizeof(a), address); t = avahi_string_list_to_string(txt); - fprintf(stderr, "\t%s:%u (%s) TXT=%s\n", host_name, port, a, t); + fprintf(stderr, "\t%s:%u (%s) TXT=%s (cookie is %u)\n", host_name, port, a, t, avahi_string_list_get_service_cookie(txt)); avahi_free(t); } diff --git a/examples/core-browse-services.c b/examples/core-browse-services.c index d91a67c..8df5454 100644 --- a/examples/core-browse-services.c +++ b/examples/core-browse-services.c @@ -75,7 +75,7 @@ static void resolve_callback( avahi_address_snprint(a, sizeof(a), address); t = avahi_string_list_to_string(txt); - fprintf(stderr, "\t%s:%u (%s) TXT=%s\n", host_name, port, a, t); + fprintf(stderr, "\t%s:%u (%s) TXT=%s (cookie is %u)\n", host_name, port, a, t, avahi_string_list_get_service_cookie(txt)); avahi_free(t); }