10 #ifndef PCMK__PCMKI_PCMKI_TRANSITION__H 11 #define PCMK__PCMKI_PCMKI_TRANSITION__H 15 #include <sys/types.h> 17 #include <libxml/tree.h> 49 #define pcmk__set_synapse_flags(synapse, flags_to_set) do { \ 50 (synapse)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 52 "Synapse", "synapse", \ 53 (synapse)->flags, (flags_to_set), #flags_to_set); \ 56 #define pcmk__clear_synapse_flags(synapse, flags_to_clear) do { \ 57 (synapse)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 59 "Synapse", "synapse", \ 60 (synapse)->flags, (flags_to_clear), #flags_to_clear); \ 85 #define pcmk__set_graph_action_flags(action, flags_to_set) do { \ 86 (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 89 (action)->flags, (flags_to_set), #flags_to_set); \ 92 #define pcmk__clear_graph_action_flags(action, flags_to_clear) do { \ 93 (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 96 (action)->flags, (flags_to_clear), #flags_to_clear); \ 162 const char *reference);
171 const char *filename);
175 const char *exit_reason);
181 #endif // PCMK__PCMKI_PCMKI_TRANSITION__H
enum pcmk_ipc_server type
Type aliases needed to define scheduler objects.
char * failed_start_offset
Failcount after one failed start action.
enum pcmk__graph_status pcmk__execute_graph(pcmk__graph_t *graph)
char * failed_stop_offset
Failcount after one failed stop action.
void pcmk__set_graph_functions(pcmk__graph_functions_t *fns)
lrmd_event_data_t * pcmk__event_from_graph_action(const xmlNode *resource, const pcmk__graph_action_t *action, int status, int rc, const char *exit_reason)
void pcmk__update_graph(pcmk__graph_t *graph, const pcmk__graph_action_t *action)
time_t recheck_by
Time (from epoch) by which the controller should re-run the scheduler.
void pcmk__free_graph(pcmk__graph_t *graph)
pcmk__graph_t * pcmk__unpack_graph(const xmlNode *xml_graph, const char *reference)
const char * abort_reason
pcmk__graph_synapse_t * synapse
pcmk_scheduler_t * scheduler
void pcmk__log_graph_action(int log_level, pcmk__graph_action_t *action)
const char * pcmk__graph_status2text(enum pcmk__graph_status state)
void pcmk__log_graph(unsigned int log_level, pcmk__graph_t *graph)
void pcmk__log_transition_summary(const pcmk_scheduler_t *scheduler, const char *filename)
Resource agent executor events.