10 #ifndef PCMK__COMMON_RESULTS_INTERNAL__H 11 #define PCMK__COMMON_RESULTS_INTERNAL__H 28 #define PCMK__RC_ERROR pcmk__rc_error_quark() 29 #define PCMK__EXITC_ERROR pcmk__exitc_error_quark() 48 #define PCMK__UNKNOWN_RESULT { \ 49 .exit_status = CRM_EX_OK, \ 50 .execution_status = PCMK_EXEC_UNKNOWN, \ 51 .exit_reason = NULL, \ 52 .action_stdout = NULL, \ 53 .action_stderr = NULL, \ 58 const char *exit_reason);
62 const char *format, ...) G_GNUC_PRINTF(4, 5);
65 char *out,
char *err);
88 #endif // PCMK__COMMON_RESULTS_INTERNAL__H
void pcmk__format_result(pcmk__action_result_t *result, int exit_status, enum pcmk_exec_status exec_status, const char *format,...) G_GNUC_PRINTF(4
void void pcmk__set_result_output(pcmk__action_result_t *result, char *out, char *err)
enum pcmk_exec_status execution_status
int pcmk__result_bounds(enum pcmk_result_type, int *lower, int *upper)
void pcmk__copy_result(const pcmk__action_result_t *src, pcmk__action_result_t *dst)
Action completed, result is known.
pcmk__action_result_t result
GQuark pcmk__rc_error_quark(void)
void pcmk__set_result(pcmk__action_result_t *result, int exit_status, enum pcmk_exec_status exec_status, const char *exit_reason)
pcmk_exec_status
Execution status.
GQuark pcmk__exitc_error_quark(void)
void pcmk__reset_result(pcmk__action_result_t *result)
pcmk_result_type
Types of Pacemaker result codes.