]> git.meshlink.io Git - catta/blobdiff - avahi-core/avahi-test.c
* progress on python port of avahi-discover basic things are in place
[catta] / avahi-core / avahi-test.c
index 669ca5b52157aa7138c88bd1921e0a5eca9be682..595393717c8f78879dc1a2e3c06770cac299f4c4 100644 (file)
@@ -40,9 +40,13 @@ static gboolean quit_timeout(gpointer data) {
     return FALSE;
 }
 
+static void dump_line(const gchar *text, gpointer userdata) {
+    printf("%s\n", text);
+}
+
 static gboolean dump_timeout(gpointer data) {
     AvahiServer *Avahi = data;
-    avahi_server_dump(Avahi, stdout);
+    avahi_server_dump(Avahi, dump_line, NULL);
     return TRUE;
 }