2 #define AFPD_STATUS_H 1
8 #include "afp_config.h"
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
17 /* AFPSTATUS_PRELEN is the number of bytes for status data prior to
18 * the ServerName field.
20 * This is two bytes of offset space for the MachineType, AFPVersionCount,
21 * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
23 #define AFPSTATUS_PRELEN 10
25 /* AFPSTATUS_POSTLEN is the number of bytes for offset records
26 * after the ServerName field.
28 * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
29 * DirectoryNameCount, and UTF-8 ServerName
31 #define AFPSTATUS_POSTLEN 8
32 #define AFPSTATUS_LEN (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
34 /* AFPSTATUS_MACHLEN is the number of characters for the MachineType. */
35 #define AFPSTATUS_MACHLEN 16
39 #define PASSWD_SET (1 << 0)
40 #define PASSWD_NOSAVE (1 << 1)
41 #define PASSWD_ALL (PASSWD_SET | PASSWD_NOSAVE)
43 extern void status_versions (char * /*status*/, const ASP, const DSI *);
44 extern void status_uams (char * /*status*/, const char * /*authlist*/);
45 extern void status_init (AFPConfig *, AFPConfig *,
46 const struct afp_options *);
47 extern void set_signature(struct afp_options *);
50 int afp_getsrvrinfo (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);