r21064: The core of this patch is
[samba.git] / source3 / smbd / oplock.c
index 1f73ea837da03208f40570f0d8aa69d85d4720d1..7b82a9ad9c8cff30b7a5ecd400d1dd2fbffe6b4d 100644 (file)
@@ -392,7 +392,8 @@ static void add_oplock_timeout_handler(files_struct *fsp)
 *******************************************************************/
 
 static void process_oplock_async_level2_break_message(int msg_type, struct process_id src,
-                                        void *buf, size_t len)
+                                                     void *buf, size_t len,
+                                                     void *private_data)
 {
        struct share_mode_entry msg;
        files_struct *fsp;
@@ -478,7 +479,8 @@ static void process_oplock_async_level2_break_message(int msg_type, struct proce
 *******************************************************************/
 
 static void process_oplock_break_message(int msg_type, struct process_id src,
-                                        void *buf, size_t len)
+                                        void *buf, size_t len,
+                                        void *private_data)
 {
        struct share_mode_entry msg;
        files_struct *fsp;
@@ -586,7 +588,8 @@ static void process_oplock_break_message(int msg_type, struct process_id src,
 *******************************************************************/
 
 static void process_kernel_oplock_break(int msg_type, struct process_id src,
-                                       void *buf, size_t len)
+                                       void *buf, size_t len,
+                                       void *private_data)
 {
        SMB_DEV_T dev;
        SMB_INO_T inode;
@@ -677,7 +680,8 @@ void reply_to_oplock_break_requests(files_struct *fsp)
 }
 
 static void process_oplock_break_response(int msg_type, struct process_id src,
-                                         void *buf, size_t len)
+                                         void *buf, size_t len,
+                                         void *private_data)
 {
        struct share_mode_entry msg;
 
@@ -704,7 +708,8 @@ static void process_oplock_break_response(int msg_type, struct process_id src,
 }
 
 static void process_open_retry_message(int msg_type, struct process_id src,
-                                      void *buf, size_t len)
+                                      void *buf, size_t len,
+                                      void *private_data)
 {
        struct share_mode_entry msg;
        
@@ -858,15 +863,20 @@ BOOL init_oplocks(void)
        DEBUG(3,("init_oplocks: initializing messages.\n"));
 
        message_register(MSG_SMB_BREAK_REQUEST,
-                        process_oplock_break_message);
+                        process_oplock_break_message,
+                        NULL);
        message_register(MSG_SMB_ASYNC_LEVEL2_BREAK,
-                        process_oplock_async_level2_break_message);
+                        process_oplock_async_level2_break_message,
+                        NULL);
        message_register(MSG_SMB_BREAK_RESPONSE,
-                        process_oplock_break_response);
+                        process_oplock_break_response,
+                        NULL);
        message_register(MSG_SMB_KERNEL_BREAK,
-                        process_kernel_oplock_break);
+                        process_kernel_oplock_break,
+                        NULL);
        message_register(MSG_SMB_OPEN_RETRY,
-                        process_open_retry_message);
+                        process_open_retry_message,
+                        NULL);
 
        if (lp_kernel_oplocks()) {
 #if HAVE_KERNEL_OPLOCKS_IRIX