2 #define AFPD_STATUS_H 1
5 #include <atalk/globals.h>
7 #include "afp_config.h"
9 /* we use these to prevent whacky alignment problems */
10 #define AFPSTATUS_MACHOFF 0
11 #define AFPSTATUS_VERSOFF 2
12 #define AFPSTATUS_UAMSOFF 4
13 #define AFPSTATUS_ICONOFF 6
14 #define AFPSTATUS_FLAGOFF 8
15 /* AFPSTATUS_PRELEN is the number of bytes for status data prior to
16 * the ServerName field.
18 * This is two bytes of offset space for the MachineType, AFPVersionCount,
19 * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
21 #define AFPSTATUS_PRELEN 10
22 /* AFPSTATUS_POSTLEN is the number of bytes for offset records
23 * after the ServerName field.
25 * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
26 * DirectoryNameCount, and UTF-8 ServerName
28 #define AFPSTATUS_POSTLEN 8
29 #define AFPSTATUS_LEN (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
33 #define PASSWD_SET (1 << 0)
34 #define PASSWD_NOSAVE (1 << 1)
35 #define PASSWD_ALL (PASSWD_SET | PASSWD_NOSAVE)
37 extern void status_versions (char * /*status*/, const DSI *);
38 extern void status_uams (char * /*status*/, const char * /*authlist*/);
39 extern void status_init (AFPConfig *, const struct afp_options *);
40 extern void set_signature(struct afp_options *);
43 int afp_getsrvrinfo (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);