summaryrefslogtreecommitdiff
path: root/source4/lib/messaging/messaging.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-26 01:52:35 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-26 01:52:35 +0200
commitd9a6f04ddd8074c36fc8073ec9bd183438801817 (patch)
treeede946419365647df0f910bd996b3f43d035e777 /source4/lib/messaging/messaging.c
parentf22e4d0ce3db3b199d8bac1224064c57c5f373fc (diff)
downloadsamba-d9a6f04ddd8074c36fc8073ec9bd183438801817.tar.gz
samba-d9a6f04ddd8074c36fc8073ec9bd183438801817.tar.bz2
samba-d9a6f04ddd8074c36fc8073ec9bd183438801817.zip
Provide access to server_id from python bindings, add more tests.
(This used to be commit adcd87ad07abbf60a0152deae4b975a2401d701b)
Diffstat (limited to 'source4/lib/messaging/messaging.c')
-rw-r--r--source4/lib/messaging/messaging.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index e7b654894f..4b90e8c4fd 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -1113,3 +1113,8 @@ void irpc_remove_name(struct messaging_context *msg_ctx, const char *name)
tdb_unlock_bystring(t->tdb, name);
talloc_free(t);
}
+
+struct server_id messaging_get_server_id(struct messaging_context *msg_ctx)
+{
+ return msg_ctx->server_id;
+}