summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c16
-rw-r--r--source3/locking/proto.h6
2 files changed, 10 insertions, 12 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index efc58c3891..33c92438cd 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -1926,11 +1926,11 @@ static int compare_procids(const void *p1, const void *p2)
* array, then qsort that array and only send to non-dupes.
*/
-static void brl_revalidate(struct messaging_context *msg_ctx,
- void *private_data,
- uint32_t msg_type,
- struct server_id server_id,
- DATA_BLOB *data)
+void brl_revalidate(struct messaging_context *msg_ctx,
+ void *private_data,
+ uint32_t msg_type,
+ struct server_id server_id,
+ DATA_BLOB *data)
{
struct brl_revalidate_state *state;
uint32 i;
@@ -1973,9 +1973,3 @@ static void brl_revalidate(struct messaging_context *msg_ctx,
TALLOC_FREE(state);
return;
}
-
-void brl_register_msgs(struct messaging_context *msg_ctx)
-{
- messaging_register(msg_ctx, NULL, MSG_SMB_BRL_VALIDATE,
- brl_revalidate);
-}
diff --git a/source3/locking/proto.h b/source3/locking/proto.h
index 5be8acc920..2c01634d31 100644
--- a/source3/locking/proto.h
+++ b/source3/locking/proto.h
@@ -90,7 +90,11 @@ int brl_forall(void (*fn)(struct file_id id, struct server_id pid,
struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx,
files_struct *fsp);
struct byte_range_lock *brl_get_locks_readonly(files_struct *fsp);
-void brl_register_msgs(struct messaging_context *msg_ctx);
+void brl_revalidate(struct messaging_context *msg_ctx,
+ void *private_data,
+ uint32_t msg_type,
+ struct server_id server_id,
+ DATA_BLOB *data);
/* The following definitions come from locking/locking.c */