#include <atalk/logger.h>
+#include "afp_config.h"
+
#define AFP_DNS_SERVICE_TYPE "_afpovertcp._tcp"
+#define ADISK_SERVICE_TYPE "_adisk._tcp"
+
+#define MAXINSTANCENAMELEN 63
struct context {
- int thread_running;
- pthread_t thread_id;
- pthread_mutex_t mutex;
- char *name;
+ /* Avahi stuff */
+ int thread_running;
AvahiThreadedPoll *threaded_poll;
AvahiClient *client;
AvahiEntryGroup *group;
- unsigned long port;
+ /* Netatalk stuff */
+ const AFPConfig *configs;
};
/* prototype definitions */
-void* av_zeroconf_setup(unsigned long, const char *);
-int av_zeroconf_run(void*);
-int av_zeroconf_unregister(void*);
-void av_zeroconf_shutdown(void*);
+void av_zeroconf_setup(const AFPConfig *configs);
+int av_zeroconf_run(void);
+int av_zeroconf_unregister(void);
+void av_zeroconf_shutdown(void);
#endif /* AFPD_AVAHI_H */