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/core.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'avahi-core/core.h') diff --git a/avahi-core/core.h b/avahi-core/core.h index 39a1db6..dbbd555 100644 --- a/avahi-core/core.h +++ b/avahi-core/core.h @@ -171,8 +171,11 @@ AvahiServerState avahi_server_get_state(AvahiServer *s); * has been read, NULL is returned. */ const AvahiRecord *avahi_server_iterate(AvahiServer *s, AvahiEntryGroup *g, void **state); -/** Dump the current server status to the specified FILE object */ -void avahi_server_dump(AvahiServer *s, FILE *f); +/** Callback prototype for avahi_server_dump() */ +typedef void (*AvahiDumpCallback)(const gchar *text, gpointer userdata); + +/** Dump the current server status by calling "callback" for each line. */ +void avahi_server_dump(AvahiServer *s, AvahiDumpCallback callback, gpointer userdata); /** Create a new entry group. The specified callback function is * called whenever the state of the group changes. Use entry group -- cgit