summaryrefslogtreecommitdiffstats
path: root/examples/client-browse-services.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-09-10 02:23:59 +0000
committerLennart Poettering <lennart@poettering.net>2005-09-10 02:23:59 +0000
commit5e381961004ca0075e5b48a1cf12d86d5177d734 (patch)
treef1472adfe46cecc43cfc81a5bc5f88e2c937082a /examples/client-browse-services.c
parent2137c8a1904f4dd738c07b8373ef1e9fce519207 (diff)
update examples to use xxx_is_service_local()
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@564 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'examples/client-browse-services.c')
-rw-r--r--examples/client-browse-services.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c
index 916b12b..7537940 100644
--- a/examples/client-browse-services.c
+++ b/examples/client-browse-services.c
@@ -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 (cookie is %u)\n", host_name, port, a, t, avahi_string_list_get_service_cookie(txt));
+ 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);
}