diff options
author | Amitay Isaacs <amitay@gmail.com> | 2015-10-23 15:23:18 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2015-10-30 02:00:28 +0100 |
commit | 9bb5e7dfab7d204b7a82e50c5bde88c5884e1634 (patch) | |
tree | 696e2eab7cae6442264a9fa22d683e2aaa5e0f08 | |
parent | 3723eed63e3e1a18f173b581a5196f90237c1c72 (diff) | |
download | samba-9bb5e7dfab7d204b7a82e50c5bde88c5884e1634.tar.gz |
ctdb-include: Group function prototypes from server/ctdb_monitor.c
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | ctdb/include/ctdb_private.h | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 7c9c06a120e..1e7fe74b9c4 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -835,10 +835,6 @@ void ctdb_stop_recoverd(struct ctdb_context *ctdb); uint32_t ctdb_get_num_active_nodes(struct ctdb_context *ctdb); -void ctdb_disable_monitoring(struct ctdb_context *ctdb); -void ctdb_enable_monitoring(struct ctdb_context *ctdb); -void ctdb_stop_monitoring(struct ctdb_context *ctdb); -void ctdb_wait_for_first_recovery(struct ctdb_context *ctdb); void ctdb_start_tcp_tickle_update(struct ctdb_context *ctdb); int32_t ctdb_run_eventscripts(struct ctdb_context *ctdb, struct ctdb_req_control *c, TDB_DATA data, bool *async_reply); @@ -940,7 +936,6 @@ int ctdb_set_public_addresses(struct ctdb_context *ctdb, bool check_addresses); int ctdb_set_single_public_ip(struct ctdb_context *ctdb, const char *iface, const char *ip); -int ctdb_set_notification_script(struct ctdb_context *ctdb, const char *script); int ctdb_takeover_run(struct ctdb_context *ctdb, struct ctdb_node_map *nodemap, uint32_t *force_rebalance_nodes, client_async_callback fail_callback, void *callback_data); @@ -986,8 +981,6 @@ int32_t ctdb_control_del_public_address(struct ctdb_context *ctdb, void ctdb_tunables_set_defaults(struct ctdb_context *ctdb); -int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata); - int ctdb_ctrl_get_all_tunables(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, @@ -1047,9 +1040,6 @@ int32_t ctdb_control_trans3_commit(struct ctdb_context *ctdb, void ctdb_persistent_finish_trans3_commits(struct ctdb_context *ctdb); -int32_t ctdb_monitoring_mode(struct ctdb_context *ctdb); -bool ctdb_stopped_monitoring(struct ctdb_context *ctdb); - struct client_async_data { enum ctdb_controls opcode; bool dont_log_errors; @@ -1104,8 +1094,6 @@ int32_t ctdb_control_get_db_seqnum(struct ctdb_context *ctdb, TDB_DATA indata, TDB_DATA *outdata); -void ctdb_run_notification_script(struct ctdb_context *ctdb, const char *event); - int verify_remote_ip_allocation(struct ctdb_context *ctdb, struct ctdb_all_public_ips *ips, uint32_t pnn); @@ -1441,4 +1429,20 @@ void ctdb_db_statistics_reset(struct ctdb_db_context *ctdb_db); int32_t ctdb_control_get_db_statistics(struct ctdb_context *ctdb, uint32_t db_id, TDB_DATA *outdata); +/* from ctdb_monitor.c */ + +int ctdb_set_notification_script(struct ctdb_context *ctdb, const char *script); +void ctdb_run_notification_script(struct ctdb_context *ctdb, const char *event); + +void ctdb_disable_monitoring(struct ctdb_context *ctdb); +void ctdb_enable_monitoring(struct ctdb_context *ctdb); +void ctdb_stop_monitoring(struct ctdb_context *ctdb); + +void ctdb_wait_for_first_recovery(struct ctdb_context *ctdb); + +int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata); + +int32_t ctdb_monitoring_mode(struct ctdb_context *ctdb); +bool ctdb_stopped_monitoring(struct ctdb_context *ctdb); + #endif |