This source file includes following definitions.
- crm_xml_add_boolean
1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_COMMON_XML_COMPAT__H
11 # define PCMK__CRM_COMMON_XML_COMPAT__H
12
13 #include <glib.h>
14 #include <libxml/tree.h>
15 #include <crm/common/xml.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21
22
23
24
25
26
27
28
29
30
31 #define XML_PARANOIA_CHECKS 0
32
33
34 int add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child);
35
36
37 xmlNode *find_entity(xmlNode *parent, const char *node_name, const char *id);
38
39
40 char *xml_get_path(const xmlNode *xml);
41
42
43 void xml_log_changes(uint8_t level, const char *function, const xmlNode *xml);
44
45
46 void xml_log_patchset(uint8_t level, const char *function, const xmlNode *xml);
47
48
49 gboolean apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml);
50
51
52 void crm_destroy_xml(gpointer data);
53
54
55 static inline const char *
56 crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value)
57 {
58 return crm_xml_add(node, name, (value? "true" : "false"));
59 }
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif