2015-04-14 10:20:05 +03:00
/*
CTDB protocol marshalling
Copyright ( C ) Amitay Isaacs 2015
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , see < http : //www.gnu.org/licenses/>.
*/
# ifndef __PROTOCOL_PRIVATE_H__
# define __PROTOCOL_PRIVATE_H__
# include "protocol.h"
2017-07-13 10:28:42 +03:00
/*
* From protocol / protocol_basic . c
*/
2017-06-29 15:24:20 +03:00
size_t ctdb_uint8_len ( uint8_t * in ) ;
void ctdb_uint8_push ( uint8_t * in , uint8_t * buf , size_t * npush ) ;
int ctdb_uint8_pull ( uint8_t * buf , size_t buflen , uint8_t * out , size_t * npull ) ;
2017-07-12 11:38:00 +03:00
size_t ctdb_uint16_len ( uint16_t * in ) ;
void ctdb_uint16_push ( uint16_t * in , uint8_t * buf , size_t * npush ) ;
int ctdb_uint16_pull ( uint8_t * buf , size_t buflen , uint16_t * out ,
size_t * npull ) ;
2017-06-29 15:09:26 +03:00
size_t ctdb_int32_len ( int32_t * in ) ;
void ctdb_int32_push ( int32_t * in , uint8_t * buf , size_t * npush ) ;
int ctdb_int32_pull ( uint8_t * buf , size_t buflen , int32_t * out , size_t * npull ) ;
2016-08-31 08:46:45 +03:00
2017-06-29 15:14:23 +03:00
size_t ctdb_uint32_len ( uint32_t * in ) ;
void ctdb_uint32_push ( uint32_t * in , uint8_t * buf , size_t * npush ) ;
int ctdb_uint32_pull ( uint8_t * buf , size_t buflen , uint32_t * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 15:15:43 +03:00
size_t ctdb_uint64_len ( uint64_t * in ) ;
void ctdb_uint64_push ( uint64_t * in , uint8_t * buf , size_t * npush ) ;
int ctdb_uint64_pull ( uint8_t * buf , size_t buflen , uint64_t * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 15:16:56 +03:00
size_t ctdb_double_len ( double * in ) ;
void ctdb_double_push ( double * in , uint8_t * buf , size_t * npush ) ;
int ctdb_double_pull ( uint8_t * buf , size_t buflen , double * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 17:11:45 +03:00
size_t ctdb_bool_len ( bool * in ) ;
void ctdb_bool_push ( bool * in , uint8_t * buf , size_t * npush ) ;
int ctdb_bool_pull ( uint8_t * buf , size_t buflen , bool * out , size_t * npull ) ;
2017-07-06 11:05:04 +03:00
size_t ctdb_chararray_len ( char * in , size_t len ) ;
void ctdb_chararray_push ( char * in , size_t len , uint8_t * buf , size_t * npush ) ;
int ctdb_chararray_pull ( uint8_t * buf , size_t buflen , char * out , size_t len ,
size_t * npull ) ;
2017-06-29 11:48:51 +03:00
size_t ctdb_string_len ( const char * * in ) ;
void ctdb_string_push ( const char * * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_string_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 11:48:51 +03:00
const char * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-04-20 05:45:24 +03:00
size_t ctdb_stringn_len ( const char * * in ) ;
void ctdb_stringn_push ( const char * * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_stringn_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-04-20 05:45:24 +03:00
const char * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 15:18:27 +03:00
size_t ctdb_pid_len ( pid_t * in ) ;
void ctdb_pid_push ( pid_t * in , uint8_t * buf , size_t * npush ) ;
int ctdb_pid_pull ( uint8_t * buf , size_t buflen , pid_t * out , size_t * npull ) ;
2017-07-13 10:28:42 +03:00
2017-07-06 07:48:38 +03:00
size_t ctdb_timeval_len ( struct timeval * in ) ;
void ctdb_timeval_push ( struct timeval * in , uint8_t * buf , size_t * npush ) ;
int ctdb_timeval_pull ( uint8_t * buf , size_t buflen , struct timeval * out ,
size_t * npull ) ;
2017-07-06 10:52:25 +03:00
size_t ctdb_padding_len ( int count ) ;
void ctdb_padding_push ( int count , uint8_t * buf , size_t * npush ) ;
int ctdb_padding_pull ( uint8_t * buf , size_t buflen , int count , size_t * npull ) ;
2017-07-13 10:28:42 +03:00
/*
* From protocol / protocol_types . c
*/
2017-06-30 10:15:47 +03:00
size_t ctdb_tdb_data_len ( TDB_DATA * in ) ;
void ctdb_tdb_data_push ( TDB_DATA * in , uint8_t * buf , size_t * npush ) ;
2017-07-31 09:48:58 +03:00
int ctdb_tdb_data_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-30 10:15:47 +03:00
TDB_DATA * out , size_t * npull ) ;
2017-06-29 11:41:43 +03:00
size_t ctdb_tdb_datan_len ( TDB_DATA * in ) ;
void ctdb_tdb_datan_push ( TDB_DATA * in , uint8_t * buf , size_t * npush ) ;
int ctdb_tdb_datan_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
TDB_DATA * out , size_t * npull ) ;
2017-07-26 05:49:51 +03:00
size_t ctdb_latency_counter_len ( struct ctdb_latency_counter * in ) ;
void ctdb_latency_counter_push ( struct ctdb_latency_counter * in , uint8_t * buf ,
size_t * npush ) ;
int ctdb_latency_counter_pull ( uint8_t * buf , size_t buflen ,
struct ctdb_latency_counter * out , size_t * npull ) ;
2017-07-31 09:48:58 +03:00
2017-07-26 05:50:12 +03:00
size_t ctdb_statistics_len ( struct ctdb_statistics * in ) ;
void ctdb_statistics_push ( struct ctdb_statistics * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_statistics_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-26 05:50:12 +03:00
struct ctdb_statistics * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-26 07:43:02 +03:00
size_t ctdb_statistics_list_len ( struct ctdb_statistics_list * in ) ;
void ctdb_statistics_list_push ( struct ctdb_statistics_list * in ,
uint8_t * buf , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
int ctdb_statistics_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-26 07:43:02 +03:00
struct ctdb_statistics_list * * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 12:04:56 +03:00
size_t ctdb_vnn_map_len ( struct ctdb_vnn_map * in ) ;
void ctdb_vnn_map_push ( struct ctdb_vnn_map * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_vnn_map_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 12:04:56 +03:00
struct ctdb_vnn_map * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-06 10:53:24 +03:00
size_t ctdb_dbid_len ( struct ctdb_dbid * in ) ;
void ctdb_dbid_push ( struct ctdb_dbid * in , uint8_t * buf , size_t * npush ) ;
int ctdb_dbid_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
struct ctdb_dbid * * out , size_t * npull ) ;
2017-06-29 12:33:04 +03:00
size_t ctdb_dbid_map_len ( struct ctdb_dbid_map * in ) ;
void ctdb_dbid_map_push ( struct ctdb_dbid_map * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_dbid_map_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 12:33:04 +03:00
struct ctdb_dbid_map * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 12:50:21 +03:00
size_t ctdb_pulldb_len ( struct ctdb_pulldb * in ) ;
void ctdb_pulldb_push ( struct ctdb_pulldb * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_pulldb_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 12:50:21 +03:00
struct ctdb_pulldb * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 12:55:15 +03:00
size_t ctdb_pulldb_ext_len ( struct ctdb_pulldb_ext * in ) ;
void ctdb_pulldb_ext_push ( struct ctdb_pulldb_ext * in , uint8_t * buf ,
size_t * npush ) ;
2016-02-19 02:45:19 +03:00
int ctdb_pulldb_ext_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 12:55:15 +03:00
struct ctdb_pulldb_ext * * out , size_t * npull ) ;
2016-02-19 02:45:19 +03:00
2017-06-29 16:48:01 +03:00
size_t ctdb_traverse_start_len ( struct ctdb_traverse_start * in ) ;
void ctdb_traverse_start_push ( struct ctdb_traverse_start * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_traverse_start_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 16:48:01 +03:00
struct ctdb_traverse_start * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 16:56:02 +03:00
size_t ctdb_traverse_all_len ( struct ctdb_traverse_all * in ) ;
void ctdb_traverse_all_push ( struct ctdb_traverse_all * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_traverse_all_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 16:56:02 +03:00
struct ctdb_traverse_all * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 17:16:58 +03:00
size_t ctdb_traverse_start_ext_len ( struct ctdb_traverse_start_ext * in ) ;
void ctdb_traverse_start_ext_push ( struct ctdb_traverse_start_ext * in ,
uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_traverse_start_ext_pull ( uint8_t * buf , size_t buflen ,
TALLOC_CTX * mem_ctx ,
2017-06-29 17:16:58 +03:00
struct ctdb_traverse_start_ext * * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 17:24:40 +03:00
size_t ctdb_traverse_all_ext_len ( struct ctdb_traverse_all_ext * in ) ;
void ctdb_traverse_all_ext_push ( struct ctdb_traverse_all_ext * in ,
uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_traverse_all_ext_pull ( uint8_t * buf , size_t buflen ,
TALLOC_CTX * mem_ctx ,
2017-06-29 17:24:40 +03:00
struct ctdb_traverse_all_ext * * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-18 10:12:37 +03:00
size_t ctdb_sock_addr_len ( ctdb_sock_addr * in ) ;
void ctdb_sock_addr_push ( ctdb_sock_addr * in , uint8_t * buf , size_t * npush ) ;
int ctdb_sock_addr_pull_elems ( uint8_t * buf , size_t buflen ,
TALLOC_CTX * mem_ctx , ctdb_sock_addr * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
int ctdb_sock_addr_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-18 10:12:37 +03:00
ctdb_sock_addr * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 17:31:21 +03:00
size_t ctdb_connection_len ( struct ctdb_connection * in ) ;
void ctdb_connection_push ( struct ctdb_connection * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_connection_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 17:31:21 +03:00
struct ctdb_connection * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-09-05 03:52:58 +03:00
size_t ctdb_connection_list_len ( struct ctdb_connection_list * in ) ;
void ctdb_connection_list_push ( struct ctdb_connection_list * in , uint8_t * buf ,
size_t * npush ) ;
int ctdb_connection_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
struct ctdb_connection_list * * out , size_t * npull ) ;
2017-06-29 17:36:18 +03:00
size_t ctdb_tunable_len ( struct ctdb_tunable * in ) ;
void ctdb_tunable_push ( struct ctdb_tunable * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_tunable_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 17:36:18 +03:00
struct ctdb_tunable * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 17:42:53 +03:00
size_t ctdb_node_flag_change_len ( struct ctdb_node_flag_change * in ) ;
void ctdb_node_flag_change_push ( struct ctdb_node_flag_change * in ,
uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_node_flag_change_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 17:42:53 +03:00
struct ctdb_node_flag_change * * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-06-29 18:28:26 +03:00
size_t ctdb_var_list_len ( struct ctdb_var_list * in ) ;
void ctdb_var_list_push ( struct ctdb_var_list * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_var_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-06-29 18:28:26 +03:00
struct ctdb_var_list * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-26 08:30:19 +03:00
size_t ctdb_tunable_list_len ( struct ctdb_tunable_list * in ) ;
void ctdb_tunable_list_push ( struct ctdb_tunable_list * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_tunable_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-26 08:30:19 +03:00
struct ctdb_tunable_list * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-04 10:56:12 +03:00
size_t ctdb_tickle_list_len ( struct ctdb_tickle_list * in ) ;
void ctdb_tickle_list_push ( struct ctdb_tickle_list * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_tickle_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-04 10:56:12 +03:00
struct ctdb_tickle_list * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-04 11:12:04 +03:00
size_t ctdb_addr_info_len ( struct ctdb_addr_info * in ) ;
void ctdb_addr_info_push ( struct ctdb_addr_info * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_addr_info_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-04 11:12:04 +03:00
struct ctdb_addr_info * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-05 10:51:03 +03:00
size_t ctdb_transdb_len ( struct ctdb_transdb * in ) ;
void ctdb_transdb_push ( struct ctdb_transdb * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_transdb_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-05 10:51:03 +03:00
struct ctdb_transdb * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-06 08:34:51 +03:00
size_t ctdb_uptime_len ( struct ctdb_uptime * in ) ;
void ctdb_uptime_push ( struct ctdb_uptime * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_uptime_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-06 08:34:51 +03:00
struct ctdb_uptime * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-06 07:04:51 +03:00
size_t ctdb_public_ip_len ( struct ctdb_public_ip * in ) ;
void ctdb_public_ip_push ( struct ctdb_public_ip * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_public_ip_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-06 07:04:51 +03:00
struct ctdb_public_ip * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-06 07:12:57 +03:00
size_t ctdb_public_ip_list_len ( struct ctdb_public_ip_list * in ) ;
void ctdb_public_ip_list_push ( struct ctdb_public_ip_list * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_public_ip_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-06 07:12:57 +03:00
struct ctdb_public_ip_list * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-06 07:18:02 +03:00
size_t ctdb_node_and_flags_len ( struct ctdb_node_and_flags * in ) ;
void ctdb_node_and_flags_push ( struct ctdb_node_and_flags * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_node_and_flags_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-06 07:18:02 +03:00
struct ctdb_node_and_flags * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-06 07:25:58 +03:00
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 ) ;
2015-04-14 10:20:05 +03:00
int ctdb_node_map_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-06 07:25:58 +03:00
struct ctdb_node_map * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 10:59:02 +03:00
size_t ctdb_script_len ( struct ctdb_script * in ) ;
void ctdb_script_push ( struct ctdb_script * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_script_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 10:59:02 +03:00
struct ctdb_script * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 11:18:29 +03:00
size_t ctdb_script_list_len ( struct ctdb_script_list * in ) ;
void ctdb_script_list_push ( struct ctdb_script_list * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_script_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 11:18:29 +03:00
struct ctdb_script_list * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 11:24:34 +03:00
size_t ctdb_ban_state_len ( struct ctdb_ban_state * in ) ;
void ctdb_ban_state_push ( struct ctdb_ban_state * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_ban_state_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 11:24:34 +03:00
struct ctdb_ban_state * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 11:29:12 +03:00
size_t ctdb_notify_data_len ( struct ctdb_notify_data * in ) ;
void ctdb_notify_data_push ( struct ctdb_notify_data * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_notify_data_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 11:29:12 +03:00
struct ctdb_notify_data * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 11:38:19 +03:00
size_t ctdb_iface_len ( struct ctdb_iface * in ) ;
void ctdb_iface_push ( struct ctdb_iface * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_iface_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 11:38:19 +03:00
struct ctdb_iface * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 11:45:42 +03:00
size_t ctdb_iface_list_len ( struct ctdb_iface_list * in ) ;
void ctdb_iface_list_push ( struct ctdb_iface_list * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_iface_list_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 11:45:42 +03:00
struct ctdb_iface_list * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 11:52:56 +03:00
size_t ctdb_public_ip_info_len ( struct ctdb_public_ip_info * in ) ;
void ctdb_public_ip_info_push ( struct ctdb_public_ip_info * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_public_ip_info_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 11:52:56 +03:00
struct ctdb_public_ip_info * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-12 12:05:13 +03:00
size_t ctdb_key_data_len ( struct ctdb_key_data * in ) ;
void ctdb_key_data_push ( struct ctdb_key_data * in , uint8_t * buf , size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_key_data_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-12 12:05:13 +03:00
struct ctdb_key_data * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-26 18:00:51 +03:00
size_t ctdb_db_statistics_len ( struct ctdb_db_statistics * in ) ;
void ctdb_db_statistics_push ( struct ctdb_db_statistics * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_db_statistics_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-26 18:00:51 +03:00
struct ctdb_db_statistics * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-08-30 08:13:12 +03:00
size_t ctdb_pid_srvid_len ( struct ctdb_pid_srvid * in ) ;
void ctdb_pid_srvid_push ( struct ctdb_pid_srvid * in , uint8_t * buf ,
size_t * npush ) ;
int ctdb_pid_srvid_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
struct ctdb_pid_srvid * * out , size_t * npull ) ;
2017-07-13 07:56:50 +03:00
size_t ctdb_election_message_len ( struct ctdb_election_message * in ) ;
void ctdb_election_message_push ( struct ctdb_election_message * in ,
uint8_t * buf , size_t * npush ) ;
2017-07-13 08:09:31 +03:00
int ctdb_election_message_pull ( uint8_t * buf , size_t buflen ,
TALLOC_CTX * mem_ctx ,
2017-07-13 07:56:50 +03:00
struct ctdb_election_message * * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-13 08:01:37 +03:00
size_t ctdb_srvid_message_len ( struct ctdb_srvid_message * in ) ;
void ctdb_srvid_message_push ( struct ctdb_srvid_message * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_srvid_message_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-13 08:01:37 +03:00
struct ctdb_srvid_message * * out , size_t * npull ) ;
2015-04-14 10:20:05 +03:00
2017-07-13 08:09:31 +03:00
size_t ctdb_disable_message_len ( struct ctdb_disable_message * in ) ;
void ctdb_disable_message_push ( struct ctdb_disable_message * in , uint8_t * buf ,
size_t * npush ) ;
2015-04-14 10:20:05 +03:00
int ctdb_disable_message_pull ( uint8_t * buf , size_t buflen , TALLOC_CTX * mem_ctx ,
2017-07-13 08:09:31 +03:00
struct ctdb_disable_message * * out ,
size_t * npull ) ;
2015-04-14 10:20:05 +03:00
# endif /* __PROTOCOL_PRIVATE_H__ */