1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_PENGINE_PE_TYPES_COMPAT__H
11 # define PCMK__CRM_PENGINE_PE_TYPES_COMPAT__H
12
13 #include <crm/common/scheduler.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19
20
21
22
23
24
25
26
27
28
29 #define pe_rsc_orphan pcmk_rsc_removed
30
31
32
33 #define pe_rsc_managed pcmk_rsc_managed
34
35
36 #define pe_rsc_block pcmk_rsc_blocked
37
38
39 #define pe_rsc_orphan_container_filler pcmk_rsc_removed_filler
40
41
42 #define pe_rsc_notify pcmk_rsc_notify
43
44
45 #define pe_rsc_unique pcmk_rsc_unique
46
47
48 #define pe_rsc_fence_device pcmk_rsc_fence_device
49
50
51 #define pe_rsc_promotable pcmk_rsc_promotable
52
53
54 #define pe_rsc_provisional pcmk_rsc_unassigned
55
56
57 #define pe_rsc_allocating pcmk_rsc_assigning
58
59
60 #define pe_rsc_merging pcmk_rsc_updating_nodes
61
62
63 #define pe_rsc_restarting pcmk_rsc_restarting
64
65
66 #define pe_rsc_stop pcmk_rsc_stop_if_failed
67
68
69 #define pe_rsc_reload pcmk_rsc_reload
70
71
72 #define pe_rsc_allow_remote_remotes pcmk_rsc_remote_nesting_allowed
73
74
75 #define pe_rsc_critical pcmk_rsc_critical
76
77
78 #define pe_rsc_failed pcmk_rsc_failed
79
80
81 #define pe_rsc_detect_loop pcmk_rsc_detect_loop
82
83
84 #define pe_rsc_runnable pcmk_rsc_runnable
85
86
87 #define pe_rsc_start_pending pcmk_rsc_start_pending
88
89
90 #define pe_rsc_starting pcmk_rsc_starting
91
92
93 #define pe_rsc_stopping pcmk_rsc_stopping
94
95
96 #define pe_rsc_stop_unexpected pcmk_rsc_stop_unexpected
97
98
99 #define pe_rsc_allow_migrate pcmk_rsc_migratable
100
101
102 #define pe_rsc_failure_ignored pcmk_rsc_ignore_failure
103
104
105 #define pe_rsc_replica_container pcmk_rsc_replica_container
106
107
108 #define pe_rsc_maintenance pcmk_rsc_maintenance
109
110
111 #define pe_rsc_is_container pcmk_rsc_has_filler
112
113
114 #define pe_rsc_needs_quorum pcmk_rsc_needs_quorum
115
116
117 #define pe_rsc_needs_fencing pcmk_rsc_needs_fencing
118
119
120 #define pe_rsc_needs_unfencing pcmk_rsc_needs_unfencing
121
122
123
124 #define pe_flag_have_quorum pcmk_sched_quorate
125
126
127 #define pe_flag_symmetric_cluster pcmk_sched_symmetric_cluster
128
129
130 #define pe_flag_maintenance_mode pcmk_sched_in_maintenance
131
132
133 #define pe_flag_stonith_enabled pcmk_sched_fencing_enabled
134
135
136
137 #define pe_flag_have_stonith_resource pcmk_sched_have_fencing
138
139
140 #define pe_flag_enable_unfencing pcmk_sched_enable_unfencing
141
142
143 #define pe_flag_concurrent_fencing pcmk_sched_concurrent_fencing
144
145
146 #define pe_flag_stop_rsc_orphans pcmk_sched_stop_removed_resources
147
148
149 #define pe_flag_stop_action_orphans pcmk_sched_cancel_removed_actions
150
151
152 #define pe_flag_stop_everything pcmk_sched_stop_all
153
154
155 #define pe_flag_start_failure_fatal pcmk_sched_start_failure_fatal
156
157
158 #define pe_flag_remove_after_stop pcmk_sched_remove_after_stop
159
160
161 #define pe_flag_startup_fencing pcmk_sched_startup_fencing
162
163
164 #define pe_flag_shutdown_lock pcmk_sched_shutdown_lock
165
166
167 #define pe_flag_startup_probes pcmk_sched_probe_resources
168
169
170 #define pe_flag_have_status pcmk_sched_have_status
171
172
173 #define pe_flag_have_remote_nodes pcmk_sched_have_remote_nodes
174
175
176 #define pe_flag_quick_location pcmk_sched_location_only
177
178
179 #define pe_flag_sanitized pcmk_sched_sanitized
180
181
182 #define pe_flag_stdout (1ULL << 22)
183
184
185 #define pe_flag_no_counts pcmk_sched_no_counts
186
187
188 #define pe_flag_no_compat pcmk_sched_no_compat
189
190
191 #define pe_flag_show_scores pcmk_sched_output_scores
192
193
194 #define pe_flag_show_utilization pcmk_sched_show_utilization
195
196
197 #define pe_flag_check_config pcmk_sched_validate_only
198
199
200
201 enum pe_graph_flags {
202 pe_graph_none = 0x00000,
203 pe_graph_updated_first = 0x00001,
204 pe_graph_updated_then = 0x00002,
205 pe_graph_disable = 0x00004,
206 };
207
208
209
210
211 enum pe_check_parameters {
212 pe_check_last_failure,
213 pe_check_active,
214 };
215
216
217
218 typedef struct pe_action_s action_t;
219
220
221 typedef struct pe_action_s pe_action_t;
222
223
224 typedef struct pe_action_wrapper_s action_wrapper_t;
225
226
227 typedef struct pe_action_wrapper_s pe_action_wrapper_t;
228
229
230
231 typedef struct pe_node_s node_t;
232
233
234 typedef struct pe_node_s pe_node_t;
235
236
237 typedef enum pe_quorum_policy no_quorum_policy_t;
238
239
240
241 typedef struct pe_resource_s resource_t;
242
243
244 typedef struct pe_resource_s pe_resource_t;
245
246
247 typedef struct pe_tag_s tag_t;
248
249
250 typedef struct pe_tag_s pe_tag_t;
251
252
253 typedef struct pe_ticket_s ticket_t;
254
255
256 typedef struct pe_ticket_s pe_ticket_t;
257
258
259
260 typedef struct pe_working_set_s pe_working_set_t;
261
262
263 typedef struct resource_alloc_functions_s resource_alloc_functions_t;
264
265
266 typedef struct resource_object_functions_s resource_object_functions_t;
267
268 #ifdef __cplusplus
269 }
270 #endif
271
272 #endif