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 enum controld_join_phase {
23 controld_join_nack,
24 controld_join_none,
25 controld_join_welcomed,
26 controld_join_integrated,
27 controld_join_finalized,
28 controld_join_confirmed,
29 };
30
31
32 struct controld_node_status_data {
33 enum controld_join_phase join_phase;
34 };
35
36
37
38
39
40
41
42
43
44 static inline enum controld_join_phase
45 controld_get_join_phase(const pcmk__node_status_t *node)
46 {
47 if ((node != NULL) && (node->user_data != NULL)) {
48 struct controld_node_status_data *data = node->user_data;
49
50 return data->join_phase;
51 }
52 return controld_join_none;
53 }
54
55 void post_cache_update(int instance);
56
57 extern gboolean check_join_state(enum crmd_fsa_state cur_state, const char *source);
58
59 void controld_destroy_failed_sync_table(void);
60 void controld_remove_failed_sync_node(const char *node_name);
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif