root/include/crm/pengine/pe_types_compat.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2023 the Pacemaker project contributors
   3  *
   4  * The version control history for this file may have further details.
   5  *
   6  * This source code is licensed under the GNU Lesser General Public License
   7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
   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  * \file
  21  * \brief Deprecated Pacemaker scheduler API
  22  * \ingroup pengine
  23  * \deprecated Do not include this header directly. The scheduler APIs in this
  24  *             header, and the header itself, will be removed in a future
  25  *             release.
  26  */
  27 
  28 //! \deprecated Use pcmk_rsc_removed instead
  29 #define pe_rsc_orphan                   pcmk_rsc_removed
  30 
  31 //! \deprecated Use pcmk_rsc_managed instead
  32 #define pe_rsc_managed                  pcmk_rsc_managed
  33 
  34 //! \deprecated Use pcmk_rsc_blocked instead
  35 #define pe_rsc_block                    pcmk_rsc_blocked
  36 
  37 //! \deprecated Use pcmk_rsc_removed_filler instead
  38 #define pe_rsc_orphan_container_filler  pcmk_rsc_removed_filler
  39 
  40 //! \deprecated Use pcmk_rsc_notify instead
  41 #define pe_rsc_notify                   pcmk_rsc_notify
  42 
  43 //! \deprecated Use pcmk_rsc_unique instead
  44 #define pe_rsc_unique                   pcmk_rsc_unique
  45 
  46 //! \deprecated Use pcmk_rsc_fence_device instead
  47 #define pe_rsc_fence_device             pcmk_rsc_fence_device
  48 
  49 //! \deprecated Use pcmk_rsc_promotable instead
  50 #define pe_rsc_promotable               pcmk_rsc_promotable
  51 
  52 //! \deprecated Use pcmk_rsc_unassigned instead
  53 #define pe_rsc_provisional              pcmk_rsc_unassigned
  54 
  55 //! \deprecated Use pcmk_rsc_assigning instead
  56 #define pe_rsc_allocating               pcmk_rsc_assigning
  57 
  58 //! \deprecated Use pcmk_rsc_updating_nodes instead
  59 #define pe_rsc_merging                  pcmk_rsc_updating_nodes
  60 
  61 //! \deprecated Use pcmk_rsc_restarting instead
  62 #define pe_rsc_restarting               pcmk_rsc_restarting
  63 
  64 //! \deprecated Use pcmk_rsc_stop_if_failed instead
  65 #define pe_rsc_stop                     pcmk_rsc_stop_if_failed
  66 
  67 //! \deprecated Use pcmk_rsc_reload instead
  68 #define pe_rsc_reload                   pcmk_rsc_reload
  69 
  70 //! \deprecated Use pcmk_rsc_remote_nesting_allowed instead
  71 #define pe_rsc_allow_remote_remotes     pcmk_rsc_remote_nesting_allowed
  72 
  73 //! \deprecated Use pcmk_rsc_critical instead
  74 #define pe_rsc_critical                 pcmk_rsc_critical
  75 
  76 //! \deprecated Use pcmk_rsc_failed instead
  77 #define pe_rsc_failed                   pcmk_rsc_failed
  78 
  79 //! \deprecated Use pcmk_rsc_detect_loop instead
  80 #define pe_rsc_detect_loop              pcmk_rsc_detect_loop
  81 
  82 //! \deprecated Do not use
  83 #define pe_rsc_runnable                 pcmk_rsc_runnable
  84 
  85 //! \deprecated Use pcmk_rsc_start_pending instead
  86 #define pe_rsc_start_pending            pcmk_rsc_start_pending
  87 
  88 //!< \deprecated Do not use
  89 #define pe_rsc_starting                 pcmk_rsc_starting
  90 
  91 //!< \deprecated Do not use
  92 #define pe_rsc_stopping                 pcmk_rsc_stopping
  93 
  94 //! \deprecated Use pcmk_rsc_stop_unexpected instead
  95 #define pe_rsc_stop_unexpected          pcmk_rsc_stop_unexpected
  96 
  97 //! \deprecated Use pcmk_rsc_migratable instead
  98 #define pe_rsc_allow_migrate            pcmk_rsc_migratable
  99 
 100 //! \deprecated Use pcmk_rsc_ignore_failure instead
 101 #define pe_rsc_failure_ignored          pcmk_rsc_ignore_failure
 102 
 103 //! \deprecated Use pcmk_rsc_replica_container instead
 104 #define pe_rsc_replica_container        pcmk_rsc_replica_container
 105 
 106 //! \deprecated Use pcmk_rsc_maintenance instead
 107 #define pe_rsc_maintenance              pcmk_rsc_maintenance
 108 
 109 //! \deprecated Do not use
 110 #define pe_rsc_is_container             pcmk_rsc_has_filler
 111 
 112 //! \deprecated Use pcmk_rsc_needs_quorum instead
 113 #define pe_rsc_needs_quorum             pcmk_rsc_needs_quorum
 114 
 115 //! \deprecated Use pcmk_rsc_needs_fencing instead
 116 #define pe_rsc_needs_fencing            pcmk_rsc_needs_fencing
 117 
 118 //! \deprecated Use pcmk_rsc_needs_unfencing instead
 119 #define pe_rsc_needs_unfencing          pcmk_rsc_needs_unfencing
 120 
 121 //! \deprecated Use pcmk_sched_quorate instead
 122 #define pe_flag_have_quorum             pcmk_sched_quorate
 123 
 124 //! \deprecated Use pcmk_sched_symmetric_cluster instead
 125 #define pe_flag_symmetric_cluster       pcmk_sched_symmetric_cluster
 126 
 127 //! \deprecated Use pcmk_sched_in_maintenance instead
 128 #define pe_flag_maintenance_mode        pcmk_sched_in_maintenance
 129 
 130 //! \deprecated Use pcmk_sched_fencing_enabled instead
 131 #define pe_flag_stonith_enabled         pcmk_sched_fencing_enabled
 132 
 133 //! \deprecated Use pcmk_sched_have_fencing instead
 134 #define pe_flag_have_stonith_resource   pcmk_sched_have_fencing
 135 
 136 //! \deprecated Use pcmk_sched_enable_unfencing instead
 137 #define pe_flag_enable_unfencing        pcmk_sched_enable_unfencing
 138 
 139 //! \deprecated Use pcmk_sched_concurrent_fencing instead
 140 #define pe_flag_concurrent_fencing      pcmk_sched_concurrent_fencing
 141 
 142 //! \deprecated Use pcmk_sched_stop_removed_resources instead
 143 #define pe_flag_stop_rsc_orphans        pcmk_sched_stop_removed_resources
 144 
 145 //! \deprecated Use pcmk_sched_cancel_removed_actions instead
 146 #define pe_flag_stop_action_orphans     pcmk_sched_cancel_removed_actions
 147 
 148 //! \deprecated Use pcmk_sched_stop_all instead
 149 #define pe_flag_stop_everything         pcmk_sched_stop_all
 150 
 151 //! \deprecated Use pcmk_sched_start_failure_fatal instead
 152 #define pe_flag_start_failure_fatal     pcmk_sched_start_failure_fatal
 153 
 154 //! \deprecated Do not use
 155 #define pe_flag_remove_after_stop       pcmk_sched_remove_after_stop
 156 
 157 //! \deprecated Use pcmk_sched_startup_fencing instead
 158 #define pe_flag_startup_fencing         pcmk_sched_startup_fencing
 159 
 160 //! \deprecated Use pcmk_sched_shutdown_lock instead
 161 #define pe_flag_shutdown_lock           pcmk_sched_shutdown_lock
 162 
 163 //! \deprecated Use pcmk_sched_probe_resources instead
 164 #define pe_flag_startup_probes          pcmk_sched_probe_resources
 165 
 166 //! \deprecated Use pcmk_sched_have_status instead
 167 #define pe_flag_have_status             pcmk_sched_have_status
 168 
 169 //! \deprecated Use pcmk_sched_have_remote_nodes instead
 170 #define pe_flag_have_remote_nodes       pcmk_sched_have_remote_nodes
 171 
 172 //! \deprecated Use pcmk_sched_location_only instead
 173 #define pe_flag_quick_location          pcmk_sched_location_only
 174 
 175 //! \deprecated Use pcmk_sched_sanitized instead
 176 #define pe_flag_sanitized               pcmk_sched_sanitized
 177 
 178 //! \deprecated Do not use
 179 #define pe_flag_stdout                  (1ULL << 22)
 180 
 181 //! \deprecated Use pcmk_sched_no_counts instead
 182 #define pe_flag_no_counts               pcmk_sched_no_counts
 183 
 184 //! \deprecated Use pcmk_sched_no_compat instead
 185 #define pe_flag_no_compat               pcmk_sched_no_compat
 186 
 187 //! \deprecated Use pcmk_sched_output_scores instead
 188 #define pe_flag_show_scores             pcmk_sched_output_scores
 189 
 190 //! \deprecated Use pcmk_sched_show_utilization instead
 191 #define pe_flag_show_utilization        pcmk_sched_show_utilization
 192 
 193 //! \deprecated Use pcmk_sched_validate_only instead
 194 #define pe_flag_check_config            pcmk_sched_validate_only
 195 
 196 //!@{
 197 //! \deprecated Do not use (unused by Pacemaker)
 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 //! \deprecated Do not use
 208 enum pe_check_parameters {
 209     pe_check_last_failure,
 210     pe_check_active,
 211 };
 212 //!@}
 213 
 214 //! \deprecated Use pcmk_action_t instead
 215 typedef struct pe_action_s action_t;
 216 
 217 //! \deprecated Use pcmk_action_t instead
 218 typedef struct pe_action_s pe_action_t;
 219 
 220 //! \deprecated Do not use
 221 typedef struct pe_action_wrapper_s action_wrapper_t;
 222 
 223 //! \deprecated Do not use
 224 typedef struct pe_action_wrapper_s pe_action_wrapper_t;
 225 
 226 //! \deprecated Use pcmk_node_t instead
 227 typedef struct pe_node_s node_t;
 228 
 229 //! \deprecated Use pcmk_node_t instead
 230 typedef struct pe_node_s pe_node_t;
 231 
 232 //! \deprecated Use enum pe_quorum_policy instead
 233 typedef enum pe_quorum_policy no_quorum_policy_t;
 234 
 235 //! \deprecated use pcmk_resource_t instead
 236 typedef struct pe_resource_s resource_t;
 237 
 238 //! \deprecated use pcmk_resource_t instead
 239 typedef struct pe_resource_s pe_resource_t;
 240 
 241 //! \deprecated Use pcmk_tag_t instead
 242 typedef struct pe_tag_s tag_t;
 243 
 244 //! \deprecated Use pcmk_tag_t instead
 245 typedef struct pe_tag_s pe_tag_t;
 246 
 247 //! \deprecated Use pcmk_ticket_t instead
 248 typedef struct pe_ticket_s ticket_t;
 249 
 250 //! \deprecated Use pcmk_ticket_t instead
 251 typedef struct pe_ticket_s pe_ticket_t;
 252 
 253 //! \deprecated Use pcmk_scheduler_t instead
 254 typedef struct pe_working_set_s pe_working_set_t;
 255 
 256 //! \deprecated This type should be treated as internal to Pacemaker
 257 typedef struct resource_alloc_functions_s resource_alloc_functions_t;
 258 
 259 //! \deprecated Use pcmk_rsc_methods_t instead
 260 typedef struct resource_object_functions_s resource_object_functions_t;
 261 
 262 #ifdef __cplusplus
 263 }
 264 #endif
 265 
 266 #endif // PCMK__CRM_PENGINE_PE_TYPES_COMPAT__H

/* [previous][next][first][last][top][bottom][index][help] */