10 #ifndef PCMK__CRM_CRM_COMPAT__H 11 # define PCMK__CRM_CRM_COMPAT__H 35 #define MAX_IPC_DELAY 120 38 #define CRM_OP_FENCE PCMK_ACTION_STONITH 41 #define CRM_OP_LRM_QUERY "lrm_query" 44 #define CRM_OP_RELAXED_CLONE PCMK_ACTION_CLONE_ONE_OR_MORE 47 #define CRM_OP_RELAXED_SET PCMK_ACTION_ONE_OR_MORE 50 #define CRM_ATTR_RA_VERSION "#ra-version" 53 #define CRMD_ACTION_CANCEL PCMK_ACTION_CANCEL 56 #define CRMD_ACTION_DELETE PCMK_ACTION_DELETE 59 #define CRMD_ACTION_DEMOTE PCMK_ACTION_DEMOTE 62 #define CRMD_ACTION_DEMOTED PCMK_ACTION_DEMOTED 65 #define CRMD_ACTION_METADATA PCMK_ACTION_META_DATA 68 #define CRMD_ACTION_MIGRATE PCMK_ACTION_MIGRATE_TO 71 #define CRMD_ACTION_MIGRATED PCMK_ACTION_MIGRATE_FROM 74 #define CRMD_ACTION_NOTIFIED PCMK_ACTION_NOTIFIED 77 #define CRMD_ACTION_NOTIFY PCMK_ACTION_NOTIFY 80 #define CRMD_ACTION_PROMOTE PCMK_ACTION_PROMOTE 83 #define CRMD_ACTION_PROMOTED PCMK_ACTION_PROMOTED 86 #define CRMD_ACTION_RELOAD PCMK_ACTION_RELOAD 89 #define CRMD_ACTION_RELOAD_AGENT PCMK_ACTION_RELOAD_AGENT 92 #define CRMD_ACTION_START PCMK_ACTION_START 95 #define CRMD_ACTION_STARTED PCMK_ACTION_RUNNING 98 #define CRMD_ACTION_STATUS PCMK_ACTION_MONITOR 101 #define CRMD_ACTION_STOP PCMK_ACTION_STOP 104 #define CRMD_ACTION_STOPPED PCMK_ACTION_STOPPED 107 #define CRMD_METADATA_CALL_TIMEOUT PCMK_DEFAULT_METADATA_TIMEOUT_MS 110 #define RSC_CANCEL PCMK_ACTION_CANCEL 113 #define RSC_DELETE PCMK_ACTION_DELETE 116 #define RSC_DEMOTE PCMK_ACTION_DEMOTE 119 #define RSC_DEMOTED PCMK_ACTION_DEMOTED 122 #define RSC_METADATA PCMK_ACTION_META_DATA 125 #define RSC_MIGRATE PCMK_ACTION_MIGRATE_TO 128 #define RSC_MIGRATED PCMK_ACTION_MIGRATE_FROM 131 #define RSC_NOTIFIED PCMK_ACTION_NOTIFIED 134 #define RSC_NOTIFY PCMK_ACTION_NOTIFY 137 #define RSC_PROMOTE PCMK_ACTION_PROMOTE 140 #define RSC_PROMOTED PCMK_ACTION_PROMOTED 143 #define RSC_START PCMK_ACTION_START 146 #define RSC_STARTED PCMK_ACTION_RUNNING 149 #define RSC_STATUS PCMK_ACTION_MONITOR 152 #define RSC_STOP PCMK_ACTION_STOP 155 #define RSC_STOPPED PCMK_ACTION_STOPPED 161 # define __builtin_expect(expr, result) (expr) 164 #define __likely(expr) __builtin_expect(expr, 1) 166 #define __unlikely(expr) __builtin_expect(expr, 0) 175 static inline const char *
176 crm_action_str(
const char *task, guint interval_ms) {
177 if ((task != NULL) && (interval_ms == 0)
188 #endif // PCMK__CRM_CRM_COMPAT__H
#define PCMK_ACTION_MONITOR