]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/status.h
Add FPSyncFork, set command 76 to afp_null, move everything from switch.c to auth.c
[netatalk.git] / etc / afpd / status.h
index a0b5282e0b7bea974cdd3e06780cb8170d1e6c43..e67c30a0a27b981fd5eb55817bb84b20e60a830e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: status.h,v 1.4 2001-08-15 01:37:34 srittau Exp $
+ * $Id: status.h,v 1.7 2005-04-28 20:49:44 bfernhomberg Exp $
  */
 
 #ifndef AFPD_STATUS_H
 #define AFPSTATUS_UAMSOFF     4
 #define AFPSTATUS_ICONOFF     6
 #define AFPSTATUS_FLAGOFF     8
+/* AFPSTATUS_PRELEN is the number of bytes for status data prior to 
+ * the ServerName field.
+ *
+ * This is two bytes of offset space for the MachineType, AFPVersionCount,
+ * UAMCount, VolumeIconAndMask, and the 16-bit "Fixed" status flags.
+ */
 #define AFPSTATUS_PRELEN     10
-#define AFPSTATUS_POSTLEN     4
+/* AFPSTATUS_POSTLEN is the number of bytes for offset records
+ * after the ServerName field.
+ *
+ * Right now, this is 2 bytes each for ServerSignature, networkAddressCount,
+ * DirectoryNameCount, and UTF-8 ServerName
+ */
+#define AFPSTATUS_POSTLEN     8
 #define AFPSTATUS_LEN        (AFPSTATUS_PRELEN + AFPSTATUS_POSTLEN)
 
 
@@ -29,8 +41,9 @@
 
 extern void status_versions __P((char * /*status*/));
 extern void status_uams __P((char * /*status*/, const char * /*authlist*/));
+extern void status_reset __P((void ));
 extern void status_init __P((AFPConfig *, AFPConfig *,
-                            const struct afp_options *));
+                                 const struct afp_options *));
 extern int      afp_getsrvrinfo __P((AFPObj *, char *, int, char *, int *));
 
 #endif