pacemaker  2.1.9-49aab99839
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/nvpair.h>
#include <crm/common/xml_names.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

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)
 
char * crm_xml_escape (const char *text)
 
xmlNode * copy_xml (xmlNode *src_node)
 
xmlNode * add_node_copy (xmlNode *new_parent, xmlNode *xml_node)
 
void purge_diff_markers (xmlNode *a_node)
 
xmlNode * diff_xml_object (xmlNode *left, xmlNode *right, gboolean suppress)
 
xmlNode * subtract_xml_object (xmlNode *parent, xmlNode *left, xmlNode *right, gboolean full, gboolean *changed, const char *marker)
 
gboolean can_prune_leaf (xmlNode *xml_node)
 
xmlNode * create_xml_node (xmlNode *parent, const char *name)
 
xmlNode * pcmk_create_xml_text_node (xmlNode *parent, const char *name, const char *content)
 
xmlNode * pcmk_create_html_node (xmlNode *parent, const char *element_name, const char *id, const char *class_name, const char *text)
 
xmlNode * first_named_child (const xmlNode *parent, const char *name)
 
xmlNode * find_xml_node (const xmlNode *root, const char *search_path, gboolean must_find)
 
xmlNode * crm_next_same_xml (const xmlNode *sibling)
 
void xml_remove_prop (xmlNode *obj, const char *name)
 
gboolean replace_xml_child (xmlNode *parent, xmlNode *child, xmlNode *update, gboolean delete_only)
 
gboolean update_xml_child (xmlNode *child, xmlNode *to_update)
 
int find_xml_children (xmlNode **children, xmlNode *root, const char *tag, const char *field, const char *value, gboolean search_matches)
 
xmlNode * get_xpath_object_relative (const char *xpath, xmlNode *xml_obj, int error_level)
 
void fix_plus_plus_recursive (xmlNode *target)
 
gboolean add_message_xml (xmlNode *msg, const char *field, xmlNode *xml)
 
xmlNode * get_message_xml (const xmlNode *msg, const char *field)
 
const char * xml_latest_schema (void)
 
const char * get_schema_name (int version)
 
int get_schema_version (const char *name)
 
int update_validation (xmlNode **xml_blob, int *best, int max, gboolean transform, gboolean to_logs)
 
gboolean validate_xml (xmlNode *xml_blob, const char *validation, gboolean to_logs)
 
gboolean validate_xml_verbose (const xmlNode *xml_blob)
 
gboolean cli_config_update (xmlNode **xml, int *best_version, gboolean to_logs)
 
void copy_in_properties (xmlNode *target, const xmlNode *src)
 
void expand_plus_plus (xmlNode *target, const char *name, const char *value)
 

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 33 of file xml_compat.h.

Function Documentation

◆ add_message_xml()

gboolean add_message_xml ( xmlNode *  msg,
const char *  field,
xmlNode *  xml 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 290 of file messages.c.

◆ add_node_copy()

xmlNode* add_node_copy ( xmlNode *  new_parent,
xmlNode *  xml_node 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2363 of file xml.c.

◆ 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 2379 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 1469 of file patchset.c.

◆ can_prune_leaf()

gboolean can_prune_leaf ( xmlNode *  xml_node)
Deprecated:
Do not use

Definition at line 1578 of file patchset.c.

◆ cli_config_update()

gboolean cli_config_update ( xmlNode **  xml,
int *  best_version,
gboolean  to_logs 
)
Deprecated:
Do not use

Definition at line 1735 of file schemas.c.

◆ copy_in_properties()

void copy_in_properties ( xmlNode *  target,
const xmlNode *  src 
)
Deprecated:
Do not use

Definition at line 2709 of file xml.c.

◆ copy_xml()

xmlNode* copy_xml ( xmlNode *  src_node)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2479 of file xml.c.

◆ create_xml_node()

xmlNode* create_xml_node ( xmlNode *  parent,
const char *  name 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2493 of file xml.c.

◆ crm_destroy_xml()

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

Definition at line 2342 of file xml.c.

◆ crm_next_same_xml()

xmlNode* crm_next_same_xml ( const xmlNode *  sibling)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2568 of file xml.c.

◆ crm_xml_escape()

char* crm_xml_escape ( const char *  text)
Deprecated:
Do not use

Definition at line 2420 of file xml.c.

◆ diff_xml_object()

xmlNode* diff_xml_object ( xmlNode *  left,
xmlNode *  right,
gboolean  suppress 
)
Deprecated:
Do not use

Definition at line 1565 of file patchset.c.

◆ expand_plus_plus()

void expand_plus_plus ( xmlNode *  target,
const char *  name,
const char *  value 
)
Deprecated:
Do not use

Definition at line 2732 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 2335 of file xml.c.

◆ find_xml_children()

int find_xml_children ( xmlNode **  children,
xmlNode *  root,
const char *  tag,
const char *  field,
const char *  value,
gboolean  search_matches 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2654 of file xml.c.

◆ find_xml_node()

xmlNode* find_xml_node ( const xmlNode *  root,
const char *  search_path,
gboolean  must_find 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2547 of file xml.c.

◆ first_named_child()

xmlNode* first_named_child ( const xmlNode *  parent,
const char *  name 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2541 of file xml.c.

◆ fix_plus_plus_recursive()

void fix_plus_plus_recursive ( xmlNode *  target)
Deprecated:
Do not use

Definition at line 2690 of file xml.c.

◆ get_message_xml()

xmlNode* get_message_xml ( const xmlNode *  msg,
const char *  field 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 299 of file messages.c.

◆ get_schema_name()

const char* get_schema_name ( int  version)
Deprecated:
Do not use

Definition at line 1618 of file schemas.c.

◆ get_schema_version()

int get_schema_version ( const char *  name)
Deprecated:
Do not use

Definition at line 1626 of file schemas.c.

◆ get_xpath_object_relative()

xmlNode* get_xpath_object_relative ( const char *  xpath,
xmlNode *  xml_obj,
int  error_level 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 374 of file xpath.c.

◆ getDocPtr()

xmlDoc* getDocPtr ( xmlNode *  node)
Deprecated:
This function will be removed in a future release

Definition at line 2348 of file xml.c.

◆ pcmk_create_html_node()

xmlNode* pcmk_create_html_node ( xmlNode *  parent,
const char *  element_name,
const char *  id,
const char *  class_name,
const char *  text 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2531 of file xml.c.

◆ pcmk_create_xml_text_node()

xmlNode* pcmk_create_xml_text_node ( xmlNode *  parent,
const char *  name,
const char *  content 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2521 of file xml.c.

◆ purge_diff_markers()

void purge_diff_markers ( xmlNode *  a_node)
Deprecated:
Do not use

Definition at line 1559 of file patchset.c.

◆ replace_xml_child()

gboolean replace_xml_child ( xmlNode *  parent,
xmlNode *  child,
xmlNode *  update,
gboolean  delete_only 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2580 of file xml.c.

◆ subtract_xml_object()

xmlNode* subtract_xml_object ( xmlNode *  parent,
xmlNode *  left,
xmlNode *  right,
gboolean  full,
gboolean *  changed,
const char *  marker 
)
Deprecated:
Do not use

Definition at line 1571 of file patchset.c.

◆ update_validation()

int update_validation ( xmlNode **  xml_blob,
int *  best,
int  max,
gboolean  transform,
gboolean  to_logs 
)
Deprecated:
Do not use

Definition at line 1648 of file schemas.c.

◆ update_xml_child()

gboolean update_xml_child ( xmlNode *  child,
xmlNode *  to_update 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2647 of file xml.c.

◆ validate_xml()

gboolean validate_xml ( xmlNode *  xml_blob,
const char *  validation,
gboolean  to_logs 
)
Deprecated:
Do not use

Definition at line 1667 of file schemas.c.

◆ validate_xml_verbose()

gboolean validate_xml_verbose ( const xmlNode *  xml_blob)
Deprecated:
Do not use

Definition at line 1707 of file schemas.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 360 of file xpath.c.

◆ xml_has_children()

gboolean xml_has_children ( const xmlNode *  root)
Deprecated:
Check children member directly

Definition at line 2387 of file xml.c.

◆ xml_latest_schema()

const char* xml_latest_schema ( void  )
Deprecated:
Do not use

Definition at line 1612 of file schemas.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 522 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 460 of file patchset_display.c.

◆ xml_remove_prop()

void xml_remove_prop ( xmlNode *  obj,
const char *  name 
)
Deprecated:
Do not use Pacemaker for general-purpose XML manipulation

Definition at line 2574 of file xml.c.