mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r22868: Replace some message_send_pid calls with messaging_send_pid calls. More
tomorrow.
(This used to be commit 74fa57ca5d
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1f073a0319
commit
fad7dd8a60
@ -832,7 +832,7 @@ void messaging_deregister(struct messaging_context *ctx, uint32_t msg_type,
|
||||
/*
|
||||
Send a message to a particular server
|
||||
*/
|
||||
NTSTATUS messaging_send(struct messaging_context *msg,
|
||||
NTSTATUS messaging_send(struct messaging_context *msg_ctx,
|
||||
struct server_id server,
|
||||
uint32_t msg_type, const DATA_BLOB *data)
|
||||
{
|
||||
@ -840,4 +840,22 @@ NTSTATUS messaging_send(struct messaging_context *msg,
|
||||
data->length, True, 0);
|
||||
}
|
||||
|
||||
NTSTATUS messaging_send_buf(struct messaging_context *msg_ctx,
|
||||
struct server_id server, uint32_t msg_type,
|
||||
const uint8 *buf, size_t len)
|
||||
{
|
||||
DATA_BLOB blob = data_blob_const(buf, len);
|
||||
return messaging_send(msg_ctx, server, msg_type, &blob);
|
||||
}
|
||||
|
||||
NTSTATUS messaging_send_buf_with_timeout(struct messaging_context *msg_ctx,
|
||||
struct server_id server,
|
||||
uint32_t msg_type,
|
||||
const uint8 *buf, size_t len,
|
||||
int timeout)
|
||||
{
|
||||
return message_send_pid_internal(server, msg_type, buf, len,
|
||||
True, timeout);
|
||||
}
|
||||
|
||||
/** @} **/
|
||||
|
Reference in New Issue
Block a user