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/conformance-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/conformance-test.c')
-rw-r--r-- | avahi-core/conformance-test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/avahi-core/conformance-test.c b/avahi-core/conformance-test.c index e830982..f7eba12 100644 --- a/avahi-core/conformance-test.c +++ b/avahi-core/conformance-test.c @@ -39,8 +39,12 @@ static AvahiEntryGroup *group = NULL; static int try = 0; static AvahiServer *avahi = NULL; +static void dump_line(const gchar *text, gpointer userdata) { + printf("%s\n", text); +} + static gboolean dump_timeout(gpointer data) { - avahi_server_dump(avahi, stdout); + avahi_server_dump(avahi, dump_line, NULL); return TRUE; } @@ -96,7 +100,7 @@ int main(int argc, char *argv[]) { avahi = avahi_server_new(NULL, NULL, server_callback, NULL); create_service("gurke"); - avahi_server_dump(avahi, stdout); + avahi_server_dump(avahi, dump_line, NULL); loop = g_main_loop_new(NULL, FALSE); g_timeout_add(1000*5, dump_timeout, avahi); |