1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_COMMON_XML__H
11 #define PCMK__CRM_COMMON_XML__H
12
13 #include <stdbool.h>
14
15 #include <libxml/tree.h>
16
17
18 #include <crm/common/xml_element.h>
19 #include <crm/common/xml_io.h>
20 #include <crm/common/xml_names.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26
27
28
29
30
31
32
33
34
35
36 bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]);
37
38 xmlNode *xml_create_patchset(
39 int format, xmlNode *source, xmlNode *target, bool *config, bool manage_version);
40 int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version);
41
42 void patchset_process_digest(xmlNode *patch, xmlNode *source, xmlNode *target, bool with_digest);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
49 #include <crm/common/xml_compat.h>
50 #endif
51
52 #endif