Debian Codegraph @

membership/ccm/ccmmsg.h

raw
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15 */
16 #ifndef _CCMMSG_H_
17 #define _CCMMSG_H_
18
19 #include <ccm.h>
20 #include <clplumbing/cl_signal.h>
21 #include <clplumbing/coredumps.h>
22
23 int ccm_send_cluster_msg(ll_cluster_t* hb, struct ha_msg* msg);
24 int ccm_send_node_msg(ll_cluster_t* hb, struct ha_msg* msg,
25 const char* node);
26 struct ha_msg* ccm_create_msg(ccm_info_t * info, int type);
27 int ccm_send_protoversion(ll_cluster_t *hb, ccm_info_t *info);
28 int ccm_send_one_join_reply(ll_cluster_t *hb, ccm_info_t *info,
29 const char *joiner);
30 int ccm_send_standard_clustermsg(ll_cluster_t* hb, ccm_info_t* info,
31 int type);
32 int ccm_send_join(ll_cluster_t *hb, ccm_info_t *info);
33 int ccm_send_memlist_request(ll_cluster_t *hb, ccm_info_t *info);
34 int ccm_send_memlist_res(ll_cluster_t *hb,
35 ccm_info_t *info,
36 const char *nodename,
37 const char *memlist);
38 int ccm_send_final_memlist(ll_cluster_t *hb,
39 ccm_info_t *info,
40 char *newcookie,
41 char *finallist,
42 uint32_t max_tran);
43 int ccm_send_abort(ll_cluster_t *hb, ccm_info_t *info,
44 const char *dest,
45 const int major,
46 const int minor);
47 struct ha_msg * ccm_create_leave_msg(ccm_info_t *info, int uuid);
48
49 int timeout_msg_init(ccm_info_t *info);
50 struct ha_msg* timeout_msg_mod(ccm_info_t *info);
51 int ccm_bcast_node_leave_notice(ll_cluster_t* hb,
52 ccm_info_t* info,
53 const char* node);
54 int send_node_leave_to_leader(ll_cluster_t *hb,
55 ccm_info_t *info,
56 const char *node);
57 int ccm_send_to_all(ll_cluster_t *hb, ccm_info_t *info,
58 char *memlist, char *newcookie,
59 int *uptime_list, size_t uptime_size);
60 int ccm_send_alive_msg(ll_cluster_t *hb, ccm_info_t *info);
61 int ccm_send_newnode_to_leader(ll_cluster_t *hb,
62 ccm_info_t *info,
63 const char *node);
64 int ccm_send_state_info(ll_cluster_t* hb,
65 ccm_info_t* info,
66 const char* node);
67 int ccm_send_restart_msg(ll_cluster_t* hb, ccm_info_t* info);
68
69
70
71
72 #endif