1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__XML_IO_INTERNAL__H
11 #define PCMK__XML_IO_INTERNAL__H
12
13
14
15
16
17 #include <stdbool.h>
18
19 #include <glib.h>
20 #include <libxml/tree.h>
21
22 xmlNode *pcmk__xml_read(const char *filename);
23 xmlNode *pcmk__xml_parse(const char *input);
24
25 void pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer,
26 int depth);
27
28 int pcmk__xml2fd(int fd, xmlNode *cur);
29 int pcmk__xml_write_fd(const xmlNode *xml, const char *filename, int fd,
30 bool compress, unsigned int *nbytes);
31 int pcmk__xml_write_file(const xmlNode *xml, const char *filename,
32 bool compress, unsigned int *nbytes);
33
34 #endif