10 #ifndef PCMK__CRM_CRM_COMPAT__H 11 # define PCMK__CRM_CRM_COMPAT__H 36 #define MAX_IPC_DELAY 120 40 #define CRM_SCORE_INFINITY PCMK_SCORE_INFINITY 48 #define INFINITY PCMK_SCORE_INFINITY 51 #define CRM_INFINITY_S PCMK_VALUE_INFINITY 54 #define CRM_MINUS_INFINITY_S PCMK_VALUE_MINUS_INFINITY 57 #define CRM_PLUS_INFINITY_S PCMK_VALUE_PLUS_INFINITY 60 #define INFINITY_S "INFINITY" 63 #define MINUS_INFINITY_S "-INFINITY" 66 #define CRM_OP_FENCE PCMK_ACTION_STONITH 69 #define CRM_OP_LRM_QUERY "lrm_query" 72 #define CRM_OP_RELAXED_CLONE PCMK_ACTION_CLONE_ONE_OR_MORE 75 #define CRM_OP_RELAXED_SET PCMK_ACTION_ONE_OR_MORE 78 #define CRM_ATTR_RA_VERSION "#ra-version" 81 #define CRMD_ACTION_CANCEL PCMK_ACTION_CANCEL 84 #define CRMD_ACTION_DELETE PCMK_ACTION_DELETE 87 #define CRMD_ACTION_DEMOTE PCMK_ACTION_DEMOTE 90 #define CRMD_ACTION_DEMOTED PCMK_ACTION_DEMOTED 93 #define CRMD_ACTION_METADATA PCMK_ACTION_META_DATA 96 #define CRMD_ACTION_MIGRATE PCMK_ACTION_MIGRATE_TO 99 #define CRMD_ACTION_MIGRATED PCMK_ACTION_MIGRATE_FROM 102 #define CRMD_ACTION_NOTIFIED PCMK_ACTION_NOTIFIED 105 #define CRMD_ACTION_NOTIFY PCMK_ACTION_NOTIFY 108 #define CRMD_ACTION_PROMOTE PCMK_ACTION_PROMOTE 111 #define CRMD_ACTION_PROMOTED PCMK_ACTION_PROMOTED 114 #define CRMD_ACTION_RELOAD PCMK_ACTION_RELOAD 117 #define CRMD_ACTION_RELOAD_AGENT PCMK_ACTION_RELOAD_AGENT 120 #define CRMD_ACTION_START PCMK_ACTION_START 123 #define CRMD_ACTION_STARTED PCMK_ACTION_RUNNING 126 #define CRMD_ACTION_STATUS PCMK_ACTION_MONITOR 129 #define CRMD_ACTION_STOP PCMK_ACTION_STOP 132 #define CRMD_ACTION_STOPPED PCMK_ACTION_STOPPED 135 #define CRMD_METADATA_CALL_TIMEOUT PCMK_DEFAULT_METADATA_TIMEOUT_MS 138 #define RSC_CANCEL PCMK_ACTION_CANCEL 141 #define RSC_DELETE PCMK_ACTION_DELETE 144 #define RSC_DEMOTE PCMK_ACTION_DEMOTE 147 #define RSC_DEMOTED PCMK_ACTION_DEMOTED 150 #define RSC_METADATA PCMK_ACTION_META_DATA 153 #define RSC_MIGRATE PCMK_ACTION_MIGRATE_TO 156 #define RSC_MIGRATED PCMK_ACTION_MIGRATE_FROM 159 #define RSC_NOTIFIED PCMK_ACTION_NOTIFIED 162 #define RSC_NOTIFY PCMK_ACTION_NOTIFY 165 #define RSC_PROMOTE PCMK_ACTION_PROMOTE 168 #define RSC_PROMOTED PCMK_ACTION_PROMOTED 171 #define RSC_START PCMK_ACTION_START 174 #define RSC_STARTED PCMK_ACTION_RUNNING 177 #define RSC_STATUS PCMK_ACTION_MONITOR 180 #define RSC_STOP PCMK_ACTION_STOP 183 #define RSC_STOPPED PCMK_ACTION_STOPPED 186 #define CRM_OP_LOCAL_SHUTDOWN "start_shutdown" 192 # define __builtin_expect(expr, result) (expr) 195 #define __likely(expr) __builtin_expect(expr, 1) 197 #define __unlikely(expr) __builtin_expect(expr, 0) 207 static inline const char *
208 crm_action_str(
const char *task, guint interval_ms) {
209 if ((task != NULL) && (interval_ms == 0)
220 #endif // PCMK__CRM_CRM_COMPAT__H
#define PCMK_ACTION_MONITOR
Pacemaker APIs related to scores.