]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/status.h
d2038e0846fd9285c21381c05e313bfc25e59010
[netatalk.git] / etc / afpd / status.h
1 #ifndef AFPD_STATUS_H
2 #define AFPD_STATUS_H 1
3
4 #include <sys/cdefs.h>
5 #include <atalk/dsi.h>
6 #include <atalk/asp.h>
7 #include "globals.h"
8 #include "afp_config.h"
9
10 /* we use these to prevent whacky alignment problems */
11 #define AFPSTATUS_MACHOFF     0
12 #define AFPSTATUS_VERSOFF     2
13 #define AFPSTATUS_UAMSOFF     4
14 #define AFPSTATUS_ICONOFF     6
15 #define AFPSTATUS_FLAGOFF     8
16 #define AFPSTATUS_PRELEN     10
17 #define AFPSTATUS_POSTLEN     4
18 #define AFPSTATUS_LEN        (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
19
20
21 #define PASSWD_NONE     0
22 #define PASSWD_SET     (1 << 0)
23 #define PASSWD_NOSAVE  (1 << 1)
24 #define PASSWD_ALL     (PASSWD_SET | PASSWD_NOSAVE)
25
26 extern void status_versions __P((char * /*status*/));
27 extern void status_uams __P((char * /*status*/, const char * /*authlist*/));
28 extern const void status_init __P((AFPConfig *, AFPConfig *,
29                                    const struct afp_options *));
30 extern int      afp_getsrvrinfo __P((AFPObj *, char *, int, char *, int *));
31
32 #endif