Deprecated Pacemaker XML API.
More...
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/xml.h>
Go to the source code of this file.
|
xmlDoc * | getDocPtr (xmlNode *node) |
|
int | add_node_nocopy (xmlNode *parent, const char *name, xmlNode *child) |
|
xmlNode * | find_entity (xmlNode *parent, const char *node_name, const char *id) |
|
char * | xml_get_path (const xmlNode *xml) |
| Get an XPath string that matches an XML element as closely as possible. More...
|
|
void | xml_log_changes (uint8_t level, const char *function, const xmlNode *xml) |
|
void | xml_log_patchset (uint8_t level, const char *function, const xmlNode *xml) |
|
gboolean | apply_xml_diff (xmlNode *old_xml, xmlNode *diff, xmlNode **new_xml) |
|
void | crm_destroy_xml (gpointer data) |
|
gboolean | xml_has_children (const xmlNode *root) |
|
Deprecated Pacemaker XML API.
- Deprecated:
- Do not include this header directly. The XML APIs in this header, and the header itself, will be removed in a future release.
Definition in file xml_compat.h.
◆ XML_PARANOIA_CHECKS
#define XML_PARANOIA_CHECKS 0 |
◆ add_node_nocopy()
int add_node_nocopy |
( |
xmlNode * |
parent, |
|
|
const char * |
name, |
|
|
xmlNode * |
child |
|
) |
| |
◆ apply_xml_diff()
gboolean apply_xml_diff |
( |
xmlNode * |
old_xml, |
|
|
xmlNode * |
diff, |
|
|
xmlNode ** |
new_xml |
|
) |
| |
◆ crm_destroy_xml()
void crm_destroy_xml |
( |
gpointer |
data | ) |
|
◆ find_entity()
xmlNode* find_entity |
( |
xmlNode * |
parent, |
|
|
const char * |
node_name, |
|
|
const char * |
id |
|
) |
| |
◆ getDocPtr()
xmlDoc* getDocPtr |
( |
xmlNode * |
node | ) |
|
◆ xml_get_path()
char* xml_get_path |
( |
const xmlNode * |
xml | ) |
|
Get an XPath string that matches an XML element as closely as possible.
- Deprecated:
- This function will be removed in a future release
- Deprecated:
- This function will be removed in a future release
- Parameters
-
[in] | xml | The XML element for which to build an XPath string |
- Returns
- A string that matches
xml
, or NULL
if xml
is NULL
.
- Note
- The caller is responsible for freeing the string using free().
Definition at line 358 of file xpath.c.
◆ xml_has_children()
gboolean xml_has_children |
( |
const xmlNode * |
root | ) |
|
◆ xml_log_changes()
void xml_log_changes |
( |
uint8_t |
level, |
|
|
const char * |
function, |
|
|
const xmlNode * |
xml |
|
) |
| |
◆ xml_log_patchset()
void xml_log_patchset |
( |
uint8_t |
level, |
|
|
const char * |
function, |
|
|
const xmlNode * |
xml |
|
) |
| |