#ifndef AFPD_ZEROCONF_H
#define AFPD_ZEROCONF_H
-#include <netinet/in.h> /* htons() */
-#include <atalk/logger.h>
+#include "afp_config.h"
-#ifdef HAVE_AVAHI
-#include "afp_avahi.h"
-#endif
+#define AFP_DNS_SERVICE_TYPE "_afpovertcp._tcp"
+#define ADISK_SERVICE_TYPE "_adisk._tcp"
+#define DEV_INFO_SERVICE_TYPE "_device-info._tcp"
-#define AFP_PORT 548
+#define MAXINSTANCENAMELEN 63
/*
* Prototype Definitions
/*
* registers service with a particular Zerconf implemenation.
*/
-void zeroconf_register(int port, const char *hostname);
-
-/*
- * registers volume name with a particular Zerconf implemenation.
- */
-void zeroconf_register_volume(const char *volname);
+void zeroconf_register(const AFPObj *obj);
/*
* de-registers the ntpd service with a particular Zerconf implemenation.