From 241f3ed566d34bf5b6c67ebebcc00727134d93b2 Mon Sep 17 00:00:00 2001 From: runge Date: Mon, 12 Feb 2007 23:44:39 +0000 Subject: x11vnc: add avahi (aka mDNS/Zeroconf/Bonjour...) support thanks to Diego Petteno. add -find -create --- x11vnc/cleanup.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'x11vnc/cleanup.c') diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index a81a798..3643c39 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -14,6 +14,7 @@ #include "connections.h" #include "macosx.h" #include "macosxCG.h" +#include "avahi.h" /* * Exiting and error handling routines @@ -129,6 +130,10 @@ void clean_up_exit (int ret) { ssl_helper_pid(0, 0); /* killall */ } + if (avahi) { + avahi_cleanup(); + } + #ifdef MACOSX if (client_connect_file) { if (strstr(client_connect_file, "/tmp/x11vnc-macosx-channel.") -- cgit v1.2.1