]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/status.h
- merge branch-netatalk-afp-3x-dev, HEAD was tagged before
[netatalk.git] / etc / afpd / status.h
1 /*
2  * $Id: status.h,v 1.7 2005-04-28 20:49:44 bfernhomberg Exp $
3  */
4
5 #ifndef AFPD_STATUS_H
6 #define AFPD_STATUS_H 1
7
8 #include <sys/cdefs.h>
9 #include <atalk/dsi.h>
10 #include <atalk/asp.h>
11 #include "globals.h"
12 #include "afp_config.h"
13
14 /* we use these to prevent whacky alignment problems */
15 #define AFPSTATUS_MACHOFF     0
16 #define AFPSTATUS_VERSOFF     2
17 #define AFPSTATUS_UAMSOFF     4
18 #define AFPSTATUS_ICONOFF     6
19 #define AFPSTATUS_FLAGOFF     8
20 /* AFPSTATUS_PRELEN is the number of bytes for status data prior to 
21  * the ServerName field.
22  *
23  * This is two bytes of offset space for the MachineType, AFPVersionCount,
24  * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
25  */
26 #define AFPSTATUS_PRELEN     10
27 /* AFPSTATUS_POSTLEN is the number of bytes for offset records
28  * after the ServerName field.
29  *
30  * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
31  * DirectoryNameCount, and UTF-8 ServerName
32  */
33 #define AFPSTATUS_POSTLEN     8
34 #define AFPSTATUS_LEN        (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
35
36
37 #define PASSWD_NONE     0
38 #define PASSWD_SET     (1 << 0)
39 #define PASSWD_NOSAVE  (1 << 1)
40 #define PASSWD_ALL     (PASSWD_SET | PASSWD_NOSAVE)
41
42 extern void status_versions __P((char * /*status*/));
43 extern void status_uams __P((char * /*status*/, const char * /*authlist*/));
44 extern void status_reset __P((void ));
45 extern void status_init __P((AFPConfig *, AFPConfig *,
46                                  const struct afp_options *));
47 extern int      afp_getsrvrinfo __P((AFPObj *, char *, int, char *, int *));
48
49 #endif