]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_avahi.h
Reduce log clutter
[netatalk.git] / etc / afpd / afp_avahi.h
index 059bdc1128786a536fcb66e7da7b429872e3e6a5..2c6ca706d0e5176e1bf8d82eb12b2154d02d9480 100644 (file)
 
 #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 */