pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
xml_io_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2017-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_INTERNAL__H
11#define PCMK__CRM_COMMON_XML_IO_INTERNAL__H
12
13/*
14 * Internal-only wrappers for and extensions to libxml2 I/O
15 */
16
17#include <stdbool.h> // bool
18#include <stdint.h> // uint32_t, etc.
19
20#include <glib.h> // GString
21#include <libxml/tree.h> // xmlNode
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27xmlNode *pcmk__xml_read(const char *filename);
28xmlNode *pcmk__xml_parse(const char *input);
29
30void pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer,
31 int depth);
32
33int pcmk__xml2fd(int fd, xmlNode *cur);
34int pcmk__xml_write_fd(const xmlNode *xml, const char *filename, int fd);
35int pcmk__xml_write_file(const xmlNode *xml, const char *filename,
36 bool compress);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif // PCMK__XML_IO_INTERNAL__H
char data[0]
Definition cpg.c:10
xmlNode * input
int pcmk__xml_write_fd(const xmlNode *xml, const char *filename, int fd)
Definition xml_io.c:535
void pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer, int depth)
Definition xml_io.c:370
xmlNode * pcmk__xml_read(const char *filename)
Definition xml_io.c:101
int pcmk__xml2fd(int fd, xmlNode *cur)
Definition xml_io.c:583
int pcmk__xml_write_file(const xmlNode *xml, const char *filename, bool compress)
Definition xml_io.c:560
xmlNode * pcmk__xml_parse(const char *input)
Definition xml_io.c:167