summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-12-04 13:22:30 +0100
committerMichael Adam <obnox@samba.org>2010-02-12 23:12:09 +0100
commit12abab711b58237ddccfa1d9bb526f8c7dbb6e9f (patch)
treeb909d2fd7949d63b9ac8995e39e3ff5531dc88be
parent4c1c3f2549f32fd069e0e7bf3aec299213f1e85b (diff)
downloadsamba-12abab711b58237ddccfa1d9bb526f8c7dbb6e9f.tar.gz
samba-12abab711b58237ddccfa1d9bb526f8c7dbb6e9f.tar.bz2
samba-12abab711b58237ddccfa1d9bb526f8c7dbb6e9f.zip
s3: Add ctdb_conn_msg_ctx()
-rw-r--r--source3/include/ctdbd_conn.h1
-rw-r--r--source3/lib/ctdbd_conn.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h
index 96e7aa08a6..71516c73a6 100644
--- a/source3/include/ctdbd_conn.h
+++ b/source3/include/ctdbd_conn.h
@@ -31,6 +31,7 @@ uint32 ctdbd_vnn(const struct ctdbd_connection *conn);
NTSTATUS ctdbd_register_msg_ctx(struct ctdbd_connection *conn,
struct messaging_context *msg_ctx);
+struct messaging_context *ctdb_conn_msg_ctx(struct ctdbd_connection *conn);
NTSTATUS ctdbd_messaging_send(struct ctdbd_connection *conn,
uint32 dst_vnn, uint64 dst_srvid,
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index 900fa345a1..743594d43b 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -514,6 +514,11 @@ NTSTATUS ctdbd_messaging_connection(TALLOC_CTX *mem_ctx,
return status;
}
+struct messaging_context *ctdb_conn_msg_ctx(struct ctdbd_connection *conn)
+{
+ return conn->msg_ctx;
+}
+
/*
* Packet handler to receive and handle a ctdb message
*/