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