10 #ifndef PCMK__COMMON_RESULTS_INTERNAL__H 11 #define PCMK__COMMON_RESULTS_INTERNAL__H 20 #define PCMK__RC_ERROR pcmk__rc_error_quark() 21 #define PCMK__EXITC_ERROR pcmk__exitc_error_quark() 40 #define PCMK__UNKNOWN_RESULT { \ 41 .exit_status = CRM_EX_OK, \ 42 .execution_status = PCMK_EXEC_UNKNOWN, \ 43 .exit_reason = NULL, \ 44 .action_stdout = NULL, \ 45 .action_stderr = NULL, \ 50 const char *exit_reason);
54 const char *format, ...) G_GNUC_PRINTF(4, 5);
57 char *out,
char *err);
79 #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
void pcmk__copy_result(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)