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 xmlNode *find_entity(xmlNode *parent, const char *node_name, const char *id);
35
36
37 char *xml_get_path(const xmlNode *xml);
38
39
40 gboolean apply_xml_diff(xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml);
41
42
43 void crm_destroy_xml(gpointer data);
44
45
46 static inline const char *
47 crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value)
48 {
49 return crm_xml_add(node, name, (value? "true" : "false"));
50 }
51
52 #ifdef __cplusplus
53 }
54 #endif
55
56 #endif