summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/messages.h2
-rw-r--r--source3/lib/messages.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h
index 0e0019e8ab..a64469e069 100644
--- a/source3/include/messages.h
+++ b/source3/include/messages.h
@@ -127,6 +127,8 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
struct server_id server_id,
struct event_context *ev);
+struct server_id messaging_server_id(const struct messaging_context *msg_ctx);
+
/*
* re-init after a fork
*/
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index d53297e502..ba0cd8023c 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -223,6 +223,11 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
return ctx;
}
+struct server_id messaging_server_id(const struct messaging_context *msg_ctx)
+{
+ return msg_ctx->id;
+}
+
/*
* re-init after a fork
*/