From 5d2a864c0ba3e7a67a73548e2d13ea5919aa5fc7 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 5 Jul 2024 17:58:46 +1000 Subject: [PATCH] ctdb-protocol: Move ctdb_node_map_* to protocol_api.h Signed-off-by: Martin Schwenke Reviewed-by: Anoop C S --- ctdb/protocol/protocol_api.h | 5 +++++ ctdb/protocol/protocol_private.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ctdb/protocol/protocol_api.h b/ctdb/protocol/protocol_api.h index 6cc47a43980..c7aa94fe9bc 100644 --- a/ctdb/protocol/protocol_api.h +++ b/ctdb/protocol/protocol_api.h @@ -34,6 +34,11 @@ int ctdb_ltdb_header_pull(uint8_t *buf, size_t buflen, int ctdb_ltdb_header_extract(TDB_DATA *data, struct ctdb_ltdb_header *header); +size_t ctdb_node_map_len(struct ctdb_node_map *in); +void ctdb_node_map_push(struct ctdb_node_map *in, uint8_t *buf, size_t *npush); +int ctdb_node_map_pull(uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx, + struct ctdb_node_map **out, size_t *npull); + size_t ctdb_rec_data_len(struct ctdb_rec_data *in); void ctdb_rec_data_push(struct ctdb_rec_data *in, uint8_t *buf, size_t *npush); int ctdb_rec_data_pull(uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx, diff --git a/ctdb/protocol/protocol_private.h b/ctdb/protocol/protocol_private.h index cbbba394df7..350c670150e 100644 --- a/ctdb/protocol/protocol_private.h +++ b/ctdb/protocol/protocol_private.h @@ -214,11 +214,6 @@ void ctdb_node_and_flags_push(struct ctdb_node_and_flags *in, uint8_t *buf, int ctdb_node_and_flags_pull(uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx, struct ctdb_node_and_flags **out, size_t *npull); -size_t ctdb_node_map_len(struct ctdb_node_map *in); -void ctdb_node_map_push(struct ctdb_node_map *in, uint8_t *buf, size_t *npush); -int ctdb_node_map_pull(uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx, - struct ctdb_node_map **out, size_t *npull); - size_t ctdb_script_len(struct ctdb_script *in); void ctdb_script_push(struct ctdb_script *in, uint8_t *buf, size_t *npush); int ctdb_script_pull(uint8_t *buf, size_t buflen, TALLOC_CTX *mem_ctx,