10 #ifndef CRM_TRANSITION__H 11 # define CRM_TRANSITION__H 50 #define pcmk__set_synapse_flags(synapse, flags_to_set) do { \ 51 (synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 53 "Synapse", "synapse", \ 54 (synapse)->flags, (flags_to_set), #flags_to_set); \ 57 #define pcmk__clear_synapse_flags(synapse, flags_to_clear) do { \ 58 (synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 60 "Synapse", "synapse", \ 61 (synapse)->flags, (flags_to_clear), #flags_to_clear); \ 90 #define crm__set_graph_action_flags(action, flags_to_set) do { \ 91 (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 94 (action)->flags, (flags_to_set), #flags_to_set); \ 97 #define crm__clear_graph_action_flags(action, flags_to_clear) do { \ 98 (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 100 "Action", "action", \ 101 (action)->flags, (flags_to_clear), #flags_to_clear); \ 174 const char *exit_reason);
void pcmk__update_graph(crm_graph_t *graph, crm_action_t *action)
const char * pcmk__graph_status2text(enum transition_status state)
enum transition_action completion_action
struct synapse_s synapse_t
struct crm_graph_functions_s crm_graph_functions_t
gboolean(* stonith)(crm_graph_t *graph, crm_action_t *action)
crm_action_timer_t * timer
gboolean(* crmd)(crm_graph_t *graph, crm_action_t *action)
const char * action_state_str(crm_action_t *action)
lrmd_event_data_t * pcmk__event_from_graph_action(xmlNode *resource, crm_action_t *action, int status, int rc, const char *exit_reason)
void pcmk__set_graph_functions(crm_graph_functions_t *fns)
Wrappers for and extensions to libxml2.
void pcmk__free_graph(crm_graph_t *graph)
gboolean(* rsc)(crm_graph_t *graph, crm_action_t *action)
void pcmk__log_graph(unsigned int log_level, crm_graph_t *graph)
void pcmk__log_graph_action(int log_level, crm_action_t *action)
gboolean(* pseudo)(crm_graph_t *graph, crm_action_t *action)
struct crm_action_s crm_action_t
const char * synapse_state_str(synapse_t *synapse)
enum transition_status pcmk__execute_graph(crm_graph_t *graph)
crm_graph_t * pcmk__unpack_graph(xmlNode *xml_graph, const char *reference)
gboolean(* allowed)(crm_graph_t *graph, crm_action_t *action)
const char * abort_reason