pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
pcmki_output.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019-2021 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 #ifndef PCMK__PCMKI_PCMKI_OUTPUT__H
10 # define PCMK__PCMKI_PCMKI_OUTPUT__H
11 
12 # include <libxml/tree.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
20 
21 int pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml);
22 void pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval);
23 
24 /* This function registers only the formatted output messages that are a part
25  * of libpacemaker. It is not to be confused with pcmk__register_messages,
26  * which is a part of formatted output support and registers a whole table of
27  * messages at a time.
28  */
30 
31 int pcmk__cluster_status_text(pcmk__output_t *out, va_list args);
32 
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif
pcmk__supported_format_t pcmk__out_formats[]
pcmk__output_t * pcmk__new_logger(void)
int pcmk__out_prologue(pcmk__output_t **out, xmlNodePtr *xml)
Formatted output for pacemaker tools.
void pcmk__register_lib_messages(pcmk__output_t *out)
Definition: pcmk_output.c:1920
int pcmk__cluster_status_text(pcmk__output_t *out, va_list args)
void pcmk__out_epilogue(pcmk__output_t *out, xmlNodePtr *xml, int retval)
This structure contains everything that makes up a single output formatter.