s3:smbd: add smbd_smb2_send_oplock_break()
[metze/samba/wip.git] / source3 / smbd / globals.h
index 581e5b197f45fed16b1103f49ba506f796f07d4f..e101205417e0eeb098f30ea76951726d7eb05b66 100644 (file)
@@ -195,6 +195,11 @@ NTSTATUS smbd_smb2_request_done_ex(struct smbd_smb2_request *req,
 #define smbd_smb2_request_done(req, body, dyn) \
        smbd_smb2_request_done_ex(req, NT_STATUS_OK, body, dyn, __location__)
 
+NTSTATUS smbd_smb2_send_oplock_break(struct smbd_server_connection *sconn,
+                                    uint64_t file_id_persistent,
+                                    uint64_t file_id_volatile,
+                                    uint8_t oplock_level);
+
 NTSTATUS smbd_smb2_request_check_session(struct smbd_smb2_request *req);
 NTSTATUS smbd_smb2_request_check_tcon(struct smbd_smb2_request *req);
 
@@ -229,6 +234,8 @@ struct smbd_smb2_request {
 
        struct files_struct *compat_chain_fsp;
 
+       NTSTATUS next_status;
+
        struct {
                /* the NBT header is not allocated */
                uint8_t nbt_hdr[4];