]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_avahi.h
Removing ressource fork AppleDouble fails, bug #542
[netatalk.git] / etc / afpd / afp_avahi.h
index 059bdc1128786a536fcb66e7da7b429872e3e6a5..ae3366db506c59680a73b39a848e67a15c1a2ade 100644 (file)
 
 #include <atalk/logger.h>
 
-#define AFP_DNS_SERVICE_TYPE "_afpovertcp._tcp"
+#include "afp_config.h"
 
 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 AFPObj      *obj;
 };
 
 /* 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_register(const AFPObj *obj);
+int av_zeroconf_unregister(void);
 
 #endif   /* AFPD_AVAHI_H */