]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/afp_config.h
Merge remote-tracking branch 'remotes/origin/branch-netatalk-2-1'
[netatalk.git] / etc / afpd / afp_config.h
1 /*
2  * $Id: afp_config.h,v 1.5 2009-10-13 22:55:36 didg Exp $
3  */
4
5 #ifndef AFPD_CONFIG_H
6 #define AFPD_CONFIG_H 1
7
8 #ifdef HAVE_SYS_CDEFS_H
9 #include <sys/cdefs.h>
10 #endif /* HAVE_SYS_CDEFS_H */
11
12 #include <atalk/server_child.h>
13 #include <atalk/atp.h>
14 #include "globals.h"
15
16 typedef struct AFPConfig {
17     AFPObj obj;
18     int fd, statuslen;
19     unsigned char *optcount;
20     char status[1400];
21     const void *defoptions, *signature;
22     afp_child_t *(*server_start) (struct AFPConfig *, struct AFPConfig *,
23                              server_child *);
24     void (*server_cleanup) (const struct AFPConfig *);
25     struct AFPConfig *next;
26 } AFPConfig;
27
28 extern AFPConfig *configinit (struct afp_options *);
29 extern void configfree (AFPConfig *, const AFPConfig *);
30
31 #endif