]> git.meshlink.io Git - catta/blobdiff - examples/client-browse-services.c
update python programs to new DBUS API
[catta] / examples / client-browse-services.c
index 80fa9344eea3f616f375bb8180cba918b4fa69df..75379405021c174eea40161e331e4e73d342a514 100644 (file)
@@ -64,7 +64,15 @@ 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)\n"
+                "\tTXT=%s\n"
+                "\tcookie is %u\n"
+                "\tis_local: %i\n",
+                host_name, port, a,
+                t,
+                avahi_string_list_get_service_cookie(txt),
+                avahi_client_is_service_local(avahi_service_resolver_get_client(r), interface, protocol, name, type, domain));
         avahi_free(t);
     }