]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-protocol: Move ctdb_node_map_* to protocol_api.h
authorMartin Schwenke <mschwenke@ddn.com>
Fri, 5 Jul 2024 07:58:46 +0000 (17:58 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 23 Jul 2024 11:37:34 +0000 (11:37 +0000)
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
ctdb/protocol/protocol_api.h
ctdb/protocol/protocol_private.h

index 6cc47a4398056e3cde0337dd6090c90b6507b571..c7aa94fe9bc56ce74f9f2592ef092670f4ab1d9d 100644 (file)
@@ -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,
index cbbba394df7efe7920a6c8d06bc9aafbc4360547..350c670150e219f81c4861d0db845b18b09bbd7b 100644 (file)
@@ -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,