From b6306c88b9279d8194afa85a6497c39531b3bfa9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Sep 2005 00:54:29 +0000 Subject: [PATCH] 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 --- examples/client-browse-services.c | 2 +- examples/core-browse-services.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5