diff options
author | Volker Lendecke <vl@samba.org> | 2009-12-04 13:22:30 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-04-01 09:39:13 +0200 |
commit | 2c6819df67eae05d77579c08e683fc2c9990e03a (patch) | |
tree | 317f6d55ff0dad0c876d0a5f480069b519de7bac | |
parent | f9c3ae1e17b109bd6d7832b5316dda1c688e0a5f (diff) | |
download | samba-2c6819df67eae05d77579c08e683fc2c9990e03a.tar.gz |
s3: Add ctdb_conn_msg_ctx() (cherry picked from commit 12abab711b58237ddccfa1d9bb526f8c7dbb6e9f)
(cherry picked from commit 803cf6da0bb93760902e6118952d73967d6fcdff)
-rw-r--r-- | source3/include/ctdbd_conn.h | 1 | ||||
-rw-r--r-- | source3/lib/ctdbd_conn.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h index 96e7aa08a60..71516c73a67 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 900fa345a14..743594d43b2 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 */ |