]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/cnid_dbd_private.h
New boolean volume option "delete veto files"
[netatalk.git] / include / atalk / cnid_dbd_private.h
index 742cf447437e398d613534cb19a999f68e77a94c..b61f7a8ce6e3d1d65275c4c01537ac967c6a3894 100644 (file)
@@ -25,6 +25,7 @@
 #define CNID_DBD_OP_GETSTAMP    0x0b
 #define CNID_DBD_OP_REBUILD_ADD 0x0c
 #define CNID_DBD_OP_SEARCH      0x0d
+#define CNID_DBD_OP_WIPE        0x0e
 
 #define CNID_DBD_RES_OK            0x00
 #define CNID_DBD_RES_NOTFOUND      0x01
 #define CNID_DBD_RES_SRCH_CNT      0x05
 #define CNID_DBD_RES_SRCH_DONE     0x06
 
-#define DBD_MAX_SRCH_RPLY_PAYLOAD  4096
+#define DBD_MAX_SRCH_RSLTS 100
 
 struct cnid_dbd_rqst {
     int     op;
     cnid_t  cnid;
     dev_t   dev;
     ino_t   ino;
-    union {
-        uint32_t type;
-        uint32_t reqcount;      /* for dbd_search: number of results per query */
-    };
-    union {
-        cnid_t  did;
-        uint32_t sindex;        /* for dbd_search: continuation index */
-    };
-    char   *name;
+    uint32_t type;
+    cnid_t  did;
+    const char *name;
     size_t  namelen;
 };
 
 struct cnid_dbd_rply {
     int     result;    
-    union {
-        cnid_t  cnid;
-        uint32_t count;         /* for dbd_search: number of returned names */
-    };
+    cnid_t  cnid;
     cnid_t  did;
-    char   *name;
+    char    *name;
     size_t  namelen;
 };
 
 typedef struct CNID_private {
-    u_int32_t magic;
+    uint32_t magic;
     char      db_dir[MAXPATHLEN + 1]; /* Database directory without /.AppleDB appended */
     char      *cnidserver;
     char      *cnidport;