]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/status.h
Remove all Appletalk stuff
[netatalk.git] / etc / afpd / status.h
1 #ifndef AFPD_STATUS_H
2 #define AFPD_STATUS_H 1
3
4 #include <atalk/dsi.h>
5 #include "globals.h"
6 #include "afp_config.h"
7
8 /* we use these to prevent whacky alignment problems */
9 #define AFPSTATUS_MACHOFF     0
10 #define AFPSTATUS_VERSOFF     2
11 #define AFPSTATUS_UAMSOFF     4
12 #define AFPSTATUS_ICONOFF     6
13 #define AFPSTATUS_FLAGOFF     8
14 /* AFPSTATUS_PRELEN is the number of bytes for status data prior to 
15  * the ServerName field.
16  *
17  * This is two bytes of offset space for the MachineType, AFPVersionCount,
18  * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
19  */
20 #define AFPSTATUS_PRELEN     10
21 /* AFPSTATUS_POSTLEN is the number of bytes for offset records
22  * after the ServerName field.
23  *
24  * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
25  * DirectoryNameCount, and UTF-8 ServerName
26  */
27 #define AFPSTATUS_POSTLEN     8
28 #define AFPSTATUS_LEN        (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
29
30
31 #define PASSWD_NONE     0
32 #define PASSWD_SET     (1 << 0)
33 #define PASSWD_NOSAVE  (1 << 1)
34 #define PASSWD_ALL     (PASSWD_SET | PASSWD_NOSAVE)
35
36 extern void status_versions (char * /*status*/, const DSI *);
37 extern void status_uams (char * /*status*/, const char * /*authlist*/);
38 extern void status_init (AFPConfig *, const struct afp_options *);
39 extern void set_signature(struct afp_options *);
40
41 /* FP functions */
42 int afp_getsrvrinfo (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf,  size_t *rbuflen);
43
44 #endif