1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-26 01:49:31 +03:00

s3:smbd: remove brl_register_msgs()

metze
This commit is contained in:
Stefan Metzmacher
2011-12-13 09:24:31 +01:00
parent c51da25769
commit 2e0bc74a6e
3 changed files with 12 additions and 13 deletions

View File

@ -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);
}

View File

@ -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 */

View File

@ -765,7 +765,8 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
messaging_register(msg_ctx, NULL, MSG_DEBUG, smbd_msg_debug);
messaging_register(msg_ctx, ev_ctx, MSG_PRINTER_PCAP,
smb_pcap_updated);
brl_register_msgs(msg_ctx);
messaging_register(msg_ctx, NULL, MSG_SMB_BRL_VALIDATE,
brl_revalidate);
msg_idmap_register_msg(msg_ctx);