summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/messages.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index f2d930e357..5bf1774af1 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -798,5 +798,16 @@ 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,
+ struct server_id server,
+ uint32_t msg_type, DATA_BLOB *data)
+{
+ return message_send_pid_internal(server.id, msg_type, data->data,
+ data->length, True, 0)
+ ? NT_STATUS_OK : NT_STATUS_ACCESS_DENIED;
+}
/** @} **/