]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_zeroconf.c
afpd: move mDNS service registration to netatalk process
[netatalk.git] / etc / afpd / afp_zeroconf.c
diff --git a/etc/afpd/afp_zeroconf.c b/etc/afpd/afp_zeroconf.c
deleted file mode 100644 (file)
index cf370fc..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2 -*- */
-/*
- * Author:  Daniel S. Haischt <me@daniel.stefan.haischt.name>
- * Purpose: Zeroconf facade, that abstracts access to a
- *          particular Zeroconf implementation
- * Doc:     http://www.dns-sd.org/
- *
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "afp_zeroconf.h"
-#include "afp_config.h"
-
-#ifdef HAVE_MDNS
-#include "afp_mdns.h"
-#elif defined (HAVE_AVAHI)
-#include "afp_avahi.h"
-#endif
-
-
-/*
- * Functions (actually they are just facades)
- */
-void zeroconf_register(const AFPObj *configs)
-{
-#if defined (HAVE_MDNS)
-  LOG(log_debug, logtype_afpd, "Attempting to register with mDNS using mDNSResponder");
-
-       md_zeroconf_register(configs);
-#elif defined (HAVE_AVAHI)
-  LOG(log_debug, logtype_afpd, "Attempting to register with mDNS using Avahi");
-
-       av_zeroconf_register(configs);
-#endif
-}
-
-void zeroconf_deregister(void)
-{
-#if defined (HAVE_MDNS)
-  LOG(log_debug, logtype_afpd, "Attempting to de-register mDNS using mDNSResponder");
-       md_zeroconf_unregister();
-#elif defined (HAVE_AVAHI)
-  LOG(log_debug, logtype_afpd, "Attempting to de-register mDNS using Avahi");
-       av_zeroconf_unregister();
-#endif
-}