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" 144 const char *
pe_pref(GHashTable * options,
const char *
name);
154 static 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)
const char * task2text(enum action_tasks task)
struct crm_time_s crm_time_t
struct pe_rule_eval_data pe_rule_eval_data_t
Deprecated Pacemaker scheduler utilities.
enum action_tasks text2task(const char *task)
const char * pe_pref(GHashTable *options, const char *name)
enum crm_ais_msg_types type
struct pe_re_match_data pe_re_match_data_t
const char * role2text(enum rsc_role_e role)
pe_match_data_t * match_data
pe_op_eval_data_t * op_data
void calculate_active_ops(GList *sorted_op_list, int *start_index, int *stop_index)
struct pe_rsc_eval_data pe_rsc_eval_data_t
struct pe_match_data pe_match_data_t
pe_print_options
Deprecated.
enum rsc_role_e text2role(const char *role)
pe_rsc_eval_data_t * rsc_data
const char * fail2text(enum action_fail_response fail)
struct pe_op_eval_data pe_op_eval_data_t
rsc_role_e
Possible roles that a resource can be in.
gboolean was_processing_error
gboolean was_processing_warning