This source file includes following definitions.
- controld_get_join_phase
1
2
3
4
5
6
7
8
9 #ifndef MEMBERSHIP__H
10 # define MEMBERSHIP__H
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #include <crm/cluster/internal.h>
17
18
19
20
21
22
23 enum controld_join_phase {
24 controld_join_nack,
25 controld_join_none,
26 controld_join_welcomed,
27 controld_join_integrated,
28 controld_join_finalized,
29 controld_join_confirmed,
30 };
31
32
33 struct controld_node_status_data {
34 enum controld_join_phase join_phase;
35 };
36
37
38
39
40
41
42
43
44
45 static inline enum controld_join_phase
46 controld_get_join_phase(const pcmk__node_status_t *node)
47 {
48 if ((node != NULL) && (node->user_data != NULL)) {
49 struct controld_node_status_data *data = node->user_data;
50
51 return data->join_phase;
52 }
53 return controld_join_none;
54 }
55
56 void post_cache_update(int instance);
57
58 extern gboolean check_join_state(enum crmd_fsa_state cur_state, const char *source);
59
60 void controld_destroy_failed_sync_table(void);
61 void controld_remove_failed_sync_node(const char *node_name);
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif