r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
[samba.git] / source4 / ntvfs / ntvfs.h
index 5e7088018bd26b048557d1f558bd9656793bb3d3..4ec8926ebcce1c1d2cd434f197db9d0c9832c845 100644 (file)
@@ -117,6 +117,10 @@ struct ntvfs_ops {
        /* async_setup - called when a backend is processing a async request */
        NTSTATUS (*async_setup)(struct ntvfs_module_context *ntvfs, 
                                struct smbsrv_request *req, void *private);
+
+       /* cancel - cancels any pending async request */
+       NTSTATUS (*cancel)(struct ntvfs_module_context *ntvfs, 
+                          struct smbsrv_request *req);
 };
 
 struct ntvfs_module_context {
@@ -156,7 +160,7 @@ struct ntvfs_context {
 struct ntvfs_async_state {
        struct ntvfs_async_state *prev, *next;
        /* the async handling infos */
-       unsigned state;
+       uint_t state;
        void *private_data;
        void (*send_fn)(struct smbsrv_request *);
        NTSTATUS status;
@@ -176,3 +180,5 @@ struct ntvfs_critical_sizes {
        int sizeof_smbsrv_tcon;
        int sizeof_smbsrv_request;
 };
+
+#include "ntvfs/ntvfs_proto.h"