From 76f653f0bc016dfa98a4d8688469be4ac450a17a Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 8 Mar 2016 17:20:30 +1100 Subject: ctdb-protocol: Add file IO functions for ctdb_rec_buffer Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/protocol/protocol_api.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ctdb/protocol/protocol_api.h') diff --git a/ctdb/protocol/protocol_api.h b/ctdb/protocol/protocol_api.h index d07b4198d0a..40753a9de97 100644 --- a/ctdb/protocol/protocol_api.h +++ b/ctdb/protocol/protocol_api.h @@ -52,6 +52,10 @@ int ctdb_rec_buffer_traverse(struct ctdb_rec_buffer *recbuf, ctdb_rec_parser_func_t func, void *private_data); +int ctdb_rec_buffer_write(struct ctdb_rec_buffer *recbuf, int fd); +int ctdb_rec_buffer_read(int fd, TALLOC_CTX *mem_ctx, + struct ctdb_rec_buffer **out); + size_t ctdb_server_id_len(struct ctdb_server_id *sid); void ctdb_server_id_push(struct ctdb_server_id *sid, uint8_t *buf); int ctdb_server_id_pull(uint8_t *buf, size_t buflen, -- cgit v1.2.1