]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/dsi.h
AFP replay cache, first shot
[netatalk.git] / include / atalk / dsi.h
index 0616774da18da49e2afb74ccc971bd13d40b6d19..f3a79e9fd881f6c0b310ebf6189741b7e8534faf 100644 (file)
@@ -78,8 +78,8 @@ typedef struct DSI {
   size_t datalen, cmdlen;
   off_t  read_count, write_count;
   int asleep; /* client won't reply AFP 0x7a ? */
-  /* inited = initialized?, child = a child?, noreply = send reply? */
-  char child, inited, noreply;
+  /* noreply = send reply? */
+  char noreply;
   const char *program; 
   int socket, serversock;
 
@@ -115,6 +115,7 @@ typedef struct DSI {
 /* DSI session options */
 #define DSIOPT_SERVQUANT 0x00   /* server request quantum */
 #define DSIOPT_ATTNQUANT 0x01   /* attention quantum */
+#define DSIOPT_REPLCSIZE 0x02   /* AFP replaycache size supported by the server (that's us) */
 
 /* DSI Commands */
 #define DSIFUNC_CLOSE   1       /* DSICloseSession */
@@ -157,7 +158,7 @@ extern DSI *dsi_init (const dsi_proto /*protocol*/,
 extern void dsi_setstatus (DSI *, char *, const size_t);
 
 /* in dsi_getsess.c */
-extern DSI *dsi_getsession (DSI *, server_child *, const int);
+extern afp_child_t *dsi_getsession (DSI *, server_child *, const int);
 extern void dsi_kill (int);