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