From 48cfb3c876636d79dace3ebc8e82c946bc0b7ebf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 30 Jul 2005 01:13:56 +0000 Subject: * add new tool avahi-publish-address * avahi-publish-service: fail after 12 collisions * avahi-daemon: dump record data on SIGUSR1 to syslog * avahi-core: * improve dumping API * shorten response history time to 500ms, infriniging the RFC but fixing ping-pong behaviour on RR registration * remove gcc warning git-svn-id: file:///home/lennart/svn/public/avahi/trunk@195 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/avahi-test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'avahi-core/avahi-test.c') diff --git a/avahi-core/avahi-test.c b/avahi-core/avahi-test.c index 669ca5b..5953937 100644 --- a/avahi-core/avahi-test.c +++ b/avahi-core/avahi-test.c @@ -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; } -- cgit