summaryrefslogtreecommitdiffstats
path: root/avahi-core/core.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-07-30 01:13:56 +0000
committerLennart Poettering <lennart@poettering.net>2005-07-30 01:13:56 +0000
commit48cfb3c876636d79dace3ebc8e82c946bc0b7ebf (patch)
tree484d9e332faa80fc75cb8364a20de231d0d0fd8a /avahi-core/core.h
parent38b45921cd1d33119f1c06979a57bcfe982e22da (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/core.h')
-rw-r--r--avahi-core/core.h7
1 files changed, 5 insertions, 2 deletions
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