]> git.meshlink.io Git - catta/commitdiff
update examples to make use of avahi_string_list_get_service_cookie() for whatever...
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Sep 2005 00:54:29 +0000 (00:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 10 Sep 2005 00:54:29 +0000 (00:54 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@558 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

examples/client-browse-services.c
examples/core-browse-services.c

index 80fa9344eea3f616f375bb8180cba918b4fa69df..916b12b8e9d65f2238262d4f596cae63e379832f 100644 (file)
@@ -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);
     }
 
index d91a67c54850d05a8fa897526611911689dd19c6..8df5454f0ebd158f1cc2f5845e3656de150a9b8d 100644 (file)
@@ -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);
     }