10 #ifndef PCMK__CRM_PENGINE_COMMON_COMPAT__H 11 # define PCMK__CRM_PENGINE_COMMON_COMPAT__H 28 #define RSC_ROLE_MAX (pcmk_role_promoted + 1) 32 #define RSC_ROLE_UNKNOWN_S pcmk_role_text(pcmk_role_unknown) 35 #define RSC_ROLE_STOPPED_S pcmk_role_text(pcmk_role_stopped) 38 #define RSC_ROLE_STARTED_S pcmk_role_text(pcmk_role_started) 41 #define RSC_ROLE_UNPROMOTED_S pcmk_role_text(pcmk_role_unpromoted) 44 #define RSC_ROLE_PROMOTED_S pcmk_role_text(pcmk_role_promoted) 47 #define RSC_ROLE_UNPROMOTED_LEGACY_S "Slave" 50 #define RSC_ROLE_SLAVE_S RSC_ROLE_UNPROMOTED_LEGACY_S 53 #define RSC_ROLE_PROMOTED_LEGACY_S "Master" 56 #define RSC_ROLE_MASTER_S RSC_ROLE_PROMOTED_LEGACY_S 74 static inline const char *
79 return "shutting it down";
81 return "attempting recovery";
83 return "waiting for an administrator";
85 return "stopping unexpected instances";
91 const char *
pe_pref(GHashTable * options,
const char *
name);
97 #endif // PCMK__CRM_PENGINE_COMMON_COMPAT__H enum rsc_role_e text2role(const char *role)
const char * pe_pref(GHashTable *options, const char *name)
const char * task2text(enum action_tasks task)
enum crm_ais_msg_types type
const char * fail2text(enum action_fail_response fail)
const char * role2text(enum rsc_role_e role)
enum action_tasks text2task(const char *task)