13 #include <libxml/tree.h>
41 out->
finish(out, 0, FALSE, (
void **) xml);
pcmk__supported_format_t pcmk__out_formats[]
#define PCMK__SUPPORTED_FORMAT_XML
void pcmk__register_formats(GOptionGroup *group, pcmk__supported_format_t *table)
int pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml)
Formatted output for pacemaker tools.
void pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval)
Function and executable result codes.
void pcmk__output_free(pcmk__output_t *out)
void(* finish)(pcmk__output_t *out, crm_exit_t exit_status, bool print, void **copy_dest)
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)