diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-07-30 01:13:56 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-07-30 01:13:56 +0000 |
commit | 48cfb3c876636d79dace3ebc8e82c946bc0b7ebf (patch) | |
tree | 484d9e332faa80fc75cb8364a20de231d0d0fd8a /avahi-core/avahi-test.c | |
parent | 38b45921cd1d33119f1c06979a57bcfe982e22da (diff) |
* 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
Diffstat (limited to 'avahi-core/avahi-test.c')
-rw-r--r-- | avahi-core/avahi-test.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |