summaryrefslogtreecommitdiff
path: root/ctdb/protocol/protocol_api.h
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-04-28 18:12:36 +1000
committerMartin Schwenke <martins@samba.org>2016-05-03 04:43:20 +0200
commit0eca31baf79d509528e126b3ff268163e6414136 (patch)
treefea01850cf11b85e80b0ec3ba0e84c87024d98b3 /ctdb/protocol/protocol_api.h
parente834e0a2c0aa1c7861a0f19704951d3ccdd3489a (diff)
downloadsamba-0eca31baf79d509528e126b3ff268163e6414136.tar.gz
ctdb-protocol: Expose function to allocate a packet
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/protocol/protocol_api.h')
-rw-r--r--ctdb/protocol/protocol_api.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/protocol/protocol_api.h b/ctdb/protocol/protocol_api.h
index 28f1313f742..22c9896da59 100644
--- a/ctdb/protocol/protocol_api.h
+++ b/ctdb/protocol/protocol_api.h
@@ -682,6 +682,11 @@ int ctdb_req_message_data_pull(uint8_t *pkt, size_t pkt_len,
TALLOC_CTX *mem_ctx,
struct ctdb_req_message_data *message);
+/* From protocol/protocol_packet.c */
+
+int ctdb_allocate_pkt(TALLOC_CTX *mem_ctx, size_t datalen,
+ uint8_t **buf, size_t *buflen);
+
/* From protocol/protocol_util.c */
const char *ctdb_runstate_to_string(enum ctdb_runstate runstate);