1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-11 08:23:49 +03:00

r22910: Make message_send_pid static to messages.c

This commit is contained in:
Volker Lendecke
2007-05-15 15:41:37 +00:00
committed by Gerald (Jerry) Carter
parent 330946ad23
commit 27224922cf
3 changed files with 38 additions and 35 deletions

View File

@@ -65,9 +65,11 @@ static void msg_pool_usage_helper(const void *ptr, int depth, int max_depth, int
* Respond to a POOL_USAGE message by sending back string form of memory
* usage stats.
**/
void msg_pool_usage(int msg_type, struct server_id src_pid,
void *UNUSED(buf), size_t UNUSED(len),
void *private_data)
static void msg_pool_usage(struct messaging_context *msg_ctx,
void *private_data,
uint32_t msg_type,
struct server_id src,
DATA_BLOB *data)
{
struct msg_pool_usage_state state;
@@ -90,8 +92,8 @@ void msg_pool_usage(int msg_type, struct server_id src_pid,
return;
}
message_send_pid(src_pid, MSG_POOL_USAGE,
state.s, strlen(state.s)+1, True);
messaging_send_buf(msg_ctx, src, MSG_POOL_USAGE,
(uint8 *)state.s, strlen(state.s)+1);
talloc_destroy(state.mem_ctx);
}
@@ -99,8 +101,8 @@ void msg_pool_usage(int msg_type, struct server_id src_pid,
/**
* Register handler for MSG_REQ_POOL_USAGE
**/
void register_msg_pool_usage(void)
void register_msg_pool_usage(struct messaging_context *msg_ctx)
{
message_register(MSG_REQ_POOL_USAGE, msg_pool_usage, NULL);
messaging_register(msg_ctx, NULL, MSG_REQ_POOL_USAGE, msg_pool_usage);
DEBUG(2, ("Registered MSG_REQ_POOL_USAGE\n"));
}