/* 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 {
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;
int sizeof_smbsrv_tcon;
int sizeof_smbsrv_request;
};
+
+#include "ntvfs/ntvfs_proto.h"