netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
afp_avahi.h
Go to the documentation of this file.
1
7
8#ifndef AFPD_AVAHI_H
9#define AFPD_AVAHI_H
10
11#include <assert.h>
12#include <stdlib.h>
13#include <string.h>
14
15#include <avahi-client/client.h>
16#include <avahi-client/publish.h>
17#include <avahi-common/alternative.h>
18#include <avahi-common/error.h>
19#include <avahi-common/malloc.h>
20#include <avahi-common/thread-watch.h>
21
22#include <atalk/logger.h>
23
24 struct context {
25 /* Avahi stuff */
26 int thread_running;
27 AvahiThreadedPoll *threaded_poll;
28 AvahiClient *client;
29 AvahiEntryGroup *group;
30 /* Netatalk stuff */
31 const AFPObj *obj;
32};
33
34/* prototype definitions */
35 void av_zeroconf_register(const AFPObj *obj);
36 int av_zeroconf_unregister(void);
37
38#endif /* AFPD_AVAHI_H */
av_zeroconf_register
void av_zeroconf_register(const AFPObj *obj)
Definition afp_avahi.c:290
av_zeroconf_unregister
int av_zeroconf_unregister(void)
Tries to shutdown this loop impl.
Definition afp_avahi.c:340
logger.h
obj
static AFPObj obj
Definition netatalk.c:69
AFPObj
Definition globals.h:166
context
Definition afp_avahi.h:24
context::thread_running
int thread_running
Definition afp_avahi.h:26
context::obj
const AFPObj * obj
Definition afp_avahi.h:31
context::threaded_poll
AvahiThreadedPoll * threaded_poll
Definition afp_avahi.h:27
context::client
AvahiClient * client
Definition afp_avahi.h:28
context::group
AvahiEntryGroup * group
Definition afp_avahi.h:29