1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: t; c-basic-offset: 2 -*- */
3 * Author: Daniel S. Haischt <me@daniel.stefan.haischt.name>
4 * Purpose: Avahi based Zeroconf support
5 * Docs: http://avahi.org/download/doxygen/
16 #include <avahi-client/client.h>
17 #include <avahi-client/publish.h>
19 #include <avahi-common/alternative.h>
21 #ifndef HAVE_AVAHI_THREADED_POLL
\r
22 #include <avahi-common/simple-watch.h>
23 #include <signal.h> /* SIG_BLOCK */
\r
25 #include <avahi-common/thread-watch.h>
\r
28 #include <avahi-common/malloc.h>
29 #include <avahi-common/error.h>
31 #include <atalk/logger.h>
33 #define AFP_DNS_SERVICE_TYPE "_afpovertcp._tcp"
38 pthread_mutex_t mutex;
40 #ifndef HAVE_AVAHI_THREADED_POLL
41 AvahiSimplePoll *simple_poll;
43 AvahiThreadedPoll *threaded_poll;
46 AvahiEntryGroup *group;
50 /* prototype definitions */
51 void* av_zeroconf_setup(unsigned long, const char *);
52 int av_zeroconf_run(void*);
53 int av_zeroconf_unregister(void*);
54 void av_zeroconf_shutdown(void*);
55 void av_zeroconf_lock(void *);
56 void av_zeroconf_unlock(void *);
58 #endif /* AFPD_AVAHI_H */