10 #ifndef PCMK__CRM_COMMON_ACTIONS_INTERNAL__H 11 #define PCMK__CRM_COMMON_ACTIONS_INTERNAL__H 15 #include <libxml/tree.h> 27 #define PCMK__ACTION_POWEROFF "poweroff" 31 #define PCMK__OP_FMT "%s_%s_%u" 40 #define pcmk__set_action_flags(action, flags_to_set) do { \ 41 (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 43 "Action", (action)->uuid, \ 56 #define pcmk__clear_action_flags(action, flags_to_clear) do { \ 57 (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 59 "Action", (action)->uuid, \ 73 #define pcmk__set_raw_action_flags(action_flags, action_name, to_set) do { \ 74 action_flags = pcmk__set_flags_as(__func__, __LINE__, \ 75 LOG_TRACE, "Action", action_name, \ 88 #define pcmk__clear_raw_action_flags(action_flags, action_name, to_clear) \ 90 action_flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \ 91 "Action", action_name, \ 93 (to_clear), #to_clear); \ 96 char *
pcmk__op_key(
const char *rsc_id,
const char *op_type, guint interval_ms);
113 static inline const char *
114 pcmk__readable_action(
const char *action_name, guint interval_ms) {
115 if ((interval_ms == 0)
126 #endif // PCMK__CRM_COMMON_ACTIONS_INTERNAL__H
void pcmk__filter_op_for_digest(xmlNode *param_set)
#define PCMK_ACTION_MONITOR
char * pcmk__transition_key(int transition_id, int action_id, int target_rc, const char *node)
char * pcmk__op_key(const char *rsc_id, const char *op_type, guint interval_ms)
Generate an operation key (RESOURCE_ACTION_INTERVAL)
char * pcmk__notify_key(const char *rsc_id, const char *notify_type, const char *op_type)
bool pcmk__is_fencing_action(const char *action)