X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fcore.h;h=dbbd55572e33d840c66505078a562c710e86c2da;hb=48cfb3c876636d79dace3ebc8e82c946bc0b7ebf;hp=39a1db6d7f4cede07d8abfb02502059866cc610f;hpb=38b45921cd1d33119f1c06979a57bcfe982e22da;p=catta 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