pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
xml_io_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2024 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 
10 #ifndef PCMK__CRM_COMMON_XML_IO_COMPAT__H
11 #define PCMK__CRM_COMMON_XML_IO_COMPAT__H
12 
13 #include <glib.h> // gboolean
14 #include <libxml/tree.h> // xmlNode
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
29 xmlNode *filename2xml(const char *filename);
31 
33 xmlNode *stdin2xml(void);
34 
36 xmlNode *string2xml(const char *input);
37 
39 int write_xml_fd(const xmlNode *xml, const char *filename, int fd,
40  gboolean compress);
41 
43 int write_xml_file(const xmlNode *xml, const char *filename, gboolean compress);
44 
46 char *dump_xml_formatted(const xmlNode *xml);
47 
49 char *dump_xml_formatted_with_text(const xmlNode *xml);
50 
52 char *dump_xml_unformatted(const xmlNode *xml);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif // PCMK__CRM_COMMON_XML_IO_COMPAT__H
xmlNode * filename2xml(const char *filename)
Definition: xml_io.c:758
char * dump_xml_unformatted(const xmlNode *xml)
Definition: xml_io.c:802
int write_xml_file(const xmlNode *xml, const char *filename, gboolean compress)
Definition: xml_io.c:828
char * dump_xml_formatted_with_text(const xmlNode *xml)
Definition: xml_io.c:789
xmlNode * string2xml(const char *input)
Definition: xml_io.c:770
int write_xml_fd(const xmlNode *xml, const char *filename, int fd, gboolean compress)
Definition: xml_io.c:815
xmlNode * stdin2xml(void)
Definition: xml_io.c:764
char * dump_xml_formatted(const xmlNode *xml)
Definition: xml_io.c:776
xmlNode * input