13 #include <libxml/tree.h> 41 out->
finish(out, 0, FALSE, (
void **) xml);
61 const char* argv[] = {
"", NULL };
70 crm_err(
"Can't log resource details due to internal error: %s",
#define PCMK__SUPPORTED_FORMAT_LOG
int pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml)
#define PCMK__SUPPORTED_FORMAT_XML
const char * pcmk_rc_str(int rc)
Get a user-friendly description of a return code.
void pcmk__register_formats(GOptionGroup *group, pcmk__supported_format_t *table)
Formatted output for pacemaker tools.
void pcmk__register_lib_messages(pcmk__output_t *out)
void pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval)
void(* finish)(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest)
void pe__register_messages(pcmk__output_t *out)
Function and executable result codes.
void pcmk__output_free(pcmk__output_t *out)
pcmk__supported_format_t pcmk__out_formats[]
pcmk__output_t * pcmk__new_logger(void)
#define crm_err(fmt, args...)
This structure contains everything that makes up a single output formatter.
int pcmk__output_new(pcmk__output_t **out, const char *fmt_name, const char *filename, char **argv)