pacemaker  2.1.6-802a72226b
Scalable High-Availability cluster resource manager
Macros | Functions
xml_compat.h File Reference

Deprecated Pacemaker XML API. More...

#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/xml.h>
Include dependency graph for xml_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XML_PARANOIA_CHECKS   0
 

Functions

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)
 

Detailed Description

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.

Macro Definition Documentation

◆ XML_PARANOIA_CHECKS

#define XML_PARANOIA_CHECKS   0
Deprecated:
Do not use (will be removed in a future release)

Definition at line 31 of file xml_compat.h.

Function Documentation

◆ add_node_nocopy()

int add_node_nocopy ( xmlNode *  parent,
const char *  name,
xmlNode *  child 
)
Deprecated:
This function will be removed in a future release

Definition at line 2745 of file xml.c.

◆ apply_xml_diff()

gboolean apply_xml_diff ( xmlNode *  old_xml,
xmlNode *  diff,
xmlNode **  new_xml 
)
Deprecated:
Use xml_apply_patchset() instead

Definition at line 1429 of file patchset.c.

◆ crm_destroy_xml()

void crm_destroy_xml ( gpointer  data)
Deprecated:
Do not use (will be removed in a future release)

Definition at line 2739 of file xml.c.

◆ find_entity()

xmlNode* find_entity ( xmlNode *  parent,
const char *  node_name,
const char *  id 
)
Deprecated:
This function will be removed in a future release

Definition at line 2732 of file xml.c.

◆ 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]xmlThe 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 361 of file xpath.c.

◆ xml_log_changes()

void xml_log_changes ( uint8_t  level,
const char *  function,
const xmlNode *  xml 
)
Deprecated:
This function will be removed in a future release

Definition at line 527 of file xml_display.c.

◆ xml_log_patchset()

void xml_log_patchset ( uint8_t  level,
const char *  function,
const xmlNode *  xml 
)
Deprecated:
This function will be removed in a future release

Definition at line 449 of file patchset_display.c.