10#ifndef PCMK__CRM_PENGINE_COMMON_COMPAT__H
11# define PCMK__CRM_PENGINE_COMMON_COMPAT__H
29#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
74static inline const char *
79 return "shutting it down";
81 return "attempting recovery";
83 return "waiting for an administrator";
85 return "stopping unexpected instances";
91const char *
pe_pref(GHashTable * options,
const char *
name);
enum action_tasks text2task(const char *task)
const char * fail2text(enum action_fail_response fail)
const char * role2text(enum rsc_role_e role)
const char * task2text(enum action_tasks task)
const char * pe_pref(GHashTable *options, const char *name)
enum rsc_role_e text2role(const char *role)
enum crm_ais_msg_types type
@ pcmk_multiply_active_block
@ pcmk_multiply_active_restart
@ pcmk_multiply_active_stop
@ pcmk_multiply_active_unexpected