s3: Add ctdb_conn_msg_ctx() (cherry picked from commit 12abab711b58237ddccfa1d9bb526f...
authorVolker Lendecke <vl@samba.org>
Fri, 4 Dec 2009 12:22:30 +0000 (13:22 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Apr 2010 07:39:13 +0000 (09:39 +0200)
(cherry picked from commit 803cf6da0bb93760902e6118952d73967d6fcdff)

source3/include/ctdbd_conn.h
source3/lib/ctdbd_conn.c

index 96e7aa08a603e31baa2ee5c48ce097330dda452b..71516c73a6769101c64d812c69246828e7ffa960 100644 (file)
@@ -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,
index 900fa345a1449f45609519ee04bd0d63ccc51be6..743594d43b2740819665f609271d62619e95c362 100644 (file)
@@ -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
  */