10#ifndef PCMK__CRM_PENGINE_COMMON__H
11# define PCMK__CRM_PENGINE_COMMON__H
99#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
108# define RSC_ROLE_MAX (RSC_ROLE_PROMOTED + 1)
110# define RSC_ROLE_UNKNOWN_S "Unknown"
111# define RSC_ROLE_STOPPED_S "Stopped"
112# define RSC_ROLE_STARTED_S "Started"
113# define RSC_ROLE_UNPROMOTED_S "Unpromoted"
114# define RSC_ROLE_PROMOTED_S "Promoted"
115# define RSC_ROLE_UNPROMOTED_LEGACY_S "Slave"
116# define RSC_ROLE_PROMOTED_LEGACY_S "Master"
144const char *
pe_pref(GHashTable * options,
const char *
name);
154static inline const char *
159 return "shutting it down";
161 return "attempting recovery";
163 return "waiting for an administrator";
165 return "stopping unexpected instances";
202#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
pe_print_options
Deprecated.
@ pe_print_rsconly
Ignored.
@ pe_print_max_details
Ignored.
@ pe_print_details
Ignored.
enum action_tasks text2task(const char *task)
void calculate_active_ops(GList *sorted_op_list, int *start_index, int *stop_index)
gboolean was_processing_error
@ action_fail_reset_remote
@ action_fail_restart_container
const char * fail2text(enum action_fail_response fail)
@ recovery_stop_unexpected
struct pe_rule_eval_data pe_rule_eval_data_t
const char * role2text(enum rsc_role_e role)
const char * task2text(enum action_tasks task)
const char * pe_pref(GHashTable *options, const char *name)
rsc_role_e
Possible roles that a resource can be in.
struct pe_match_data pe_match_data_t
gboolean was_processing_warning
struct pe_re_match_data pe_re_match_data_t
struct pe_op_eval_data pe_op_eval_data_t
enum rsc_role_e text2role(const char *role)
struct pe_rsc_eval_data pe_rsc_eval_data_t
Deprecated Pacemaker scheduler utilities.
enum crm_ais_msg_types type
struct crm_time_s crm_time_t
pe_rsc_eval_data_t * rsc_data
pe_match_data_t * match_data
pe_op_eval_data_t * op_data