summaryrefslogtreecommitdiff
path: root/ctdb/client/client.h
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-02-26 14:12:19 +1100
committerMartin Schwenke <martins@samba.org>2016-03-25 03:26:14 +0100
commit67799c73af486962b897d1841a8a4234fdee824b (patch)
treed5f3a5b2155eab9157606fb0a267da8579b428be /ctdb/client/client.h
parent8151ac21108374cd5b97cc22a81fe9097df8ee23 (diff)
downloadsamba-67799c73af486962b897d1841a8a4234fdee824b.tar.gz
ctdb-client: Add client API for sending message to multiple nodes
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/client/client.h')
-rw-r--r--ctdb/client/client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctdb/client/client.h b/ctdb/client/client.h
index df0b9b8bee7..9d4f73d7525 100644
--- a/ctdb/client/client.h
+++ b/ctdb/client/client.h
@@ -78,6 +78,16 @@ struct tevent_req *ctdb_client_message_send(TALLOC_CTX *mem_ctx,
bool ctdb_client_message_recv(struct tevent_req *req, int *perr);
+struct tevent_req *ctdb_client_message_multi_send(
+ TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct ctdb_client_context *client,
+ uint32_t *pnn_list, int count,
+ struct ctdb_req_message *message);
+
+bool ctdb_client_message_multi_recv(struct tevent_req *req, int *perr,
+ TALLOC_CTX *mem_ctx, int **perr_list);
+
int ctdb_client_message(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
struct ctdb_client_context *client,
uint32_t destnode, struct ctdb_req_message *message);