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 xmlNode *find_entity(xmlNode *parent, const char *node_name, const char *id);
32
33
34 gboolean apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml);
35
36
37 static inline const char *
38 crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value)
39 {
40 return crm_xml_add(node, name, (value? "true" : "false"));
41 }
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif