10 #ifndef PCMK__CRM_COMMON_ACTIONS_INTERNAL__H 11 #define PCMK__CRM_COMMON_ACTIONS_INTERNAL__H 16 #include <libxml/tree.h> 28 #define PCMK__OP_FMT "%s_%s_%u" 37 #define pcmk__set_action_flags(action, flags_to_set) do { \ 38 (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 40 "Action", (action)->uuid, \ 53 #define pcmk__clear_action_flags(action, flags_to_clear) do { \ 54 (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 56 "Action", (action)->uuid, \ 70 #define pcmk__set_raw_action_flags(action_flags, action_name, to_set) do { \ 71 action_flags = pcmk__set_flags_as(__func__, __LINE__, \ 72 LOG_TRACE, "Action", action_name, \ 85 #define pcmk__clear_raw_action_flags(action_flags, action_name, to_clear) \ 87 action_flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \ 88 "Action", action_name, \ 90 (to_clear), #to_clear); \ 235 char *
pcmk__op_key(
const char *rsc_id,
const char *op_type, guint interval_ms);
237 const char *op_type);
256 static inline const char *
257 pcmk__readable_action(
const char *action_name, guint interval_ms) {
258 if ((interval_ms == 0)
269 #endif // PCMK__CRM_COMMON_ACTIONS_INTERNAL__H
void pcmk__filter_op_for_digest(xmlNode *param_set)
Type aliases needed to define scheduler objects.
#define PCMK_ACTION_MONITOR
enum rsc_role_e fail_role
enum pcmk__on_fail on_fail
char * pcmk__transition_key(int transition_id, int action_id, int target_rc, const char *node)
Scheduler API for resource roles.
pcmk_scheduler_t * scheduler
enum pcmk__requires needs
char * pcmk__op_key(const char *rsc_id, const char *op_type, guint interval_ms)
Generate an operation key (RESOURCE_ACTION_INTERVAL)
const char * pcmk__on_fail_text(enum pcmk__on_fail on_fail)
char * pcmk__notify_key(const char *rsc_id, const char *notify_type, const char *op_type)
int required_runnable_before
bool pcmk__is_fencing_action(const char *action)
enum pcmk__action_type pcmk__parse_action(const char *action_name)
const char * pcmk__action_text(enum pcmk__action_type action)