pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
Deprecated Pacemaker XML API. More...
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/nvpair.h>
#include <crm/common/xml_names.h>
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) |
Deprecated Pacemaker XML API.
Definition in file xml_compat.h.
#define XML_PARANOIA_CHECKS 0 |
Definition at line 33 of file xml_compat.h.
gboolean add_message_xml | ( | xmlNode * | msg, |
const char * | field, | ||
xmlNode * | xml | ||
) |
Definition at line 290 of file messages.c.
xmlNode* add_node_copy | ( | xmlNode * | new_parent, |
xmlNode * | xml_node | ||
) |
int add_node_nocopy | ( | xmlNode * | parent, |
const char * | name, | ||
xmlNode * | child | ||
) |
gboolean apply_xml_diff | ( | xmlNode * | old_xml, |
xmlNode * | diff, | ||
xmlNode ** | new_xml | ||
) |
Definition at line 1469 of file patchset.c.
gboolean can_prune_leaf | ( | xmlNode * | xml_node | ) |
Definition at line 1578 of file patchset.c.
gboolean cli_config_update | ( | xmlNode ** | xml, |
int * | best_version, | ||
gboolean | to_logs | ||
) |
void copy_in_properties | ( | xmlNode * | target, |
const xmlNode * | src | ||
) |
xmlNode* copy_xml | ( | xmlNode * | src_node | ) |
xmlNode* create_xml_node | ( | xmlNode * | parent, |
const char * | name | ||
) |
void crm_destroy_xml | ( | gpointer | data | ) |
xmlNode* crm_next_same_xml | ( | const xmlNode * | sibling | ) |
char* crm_xml_escape | ( | const char * | text | ) |
xmlNode* diff_xml_object | ( | xmlNode * | left, |
xmlNode * | right, | ||
gboolean | suppress | ||
) |
Definition at line 1565 of file patchset.c.
void expand_plus_plus | ( | xmlNode * | target, |
const char * | name, | ||
const char * | value | ||
) |
xmlNode* find_entity | ( | xmlNode * | parent, |
const char * | node_name, | ||
const char * | id | ||
) |
int find_xml_children | ( | xmlNode ** | children, |
xmlNode * | root, | ||
const char * | tag, | ||
const char * | field, | ||
const char * | value, | ||
gboolean | search_matches | ||
) |
xmlNode* find_xml_node | ( | const xmlNode * | root, |
const char * | search_path, | ||
gboolean | must_find | ||
) |
xmlNode* first_named_child | ( | const xmlNode * | parent, |
const char * | name | ||
) |
void fix_plus_plus_recursive | ( | xmlNode * | target | ) |
xmlNode* get_message_xml | ( | const xmlNode * | msg, |
const char * | field | ||
) |
Definition at line 299 of file messages.c.
const char* get_schema_name | ( | int | version | ) |
int get_schema_version | ( | const char * | name | ) |
xmlNode* get_xpath_object_relative | ( | const char * | xpath, |
xmlNode * | xml_obj, | ||
int | error_level | ||
) |
xmlDoc* getDocPtr | ( | xmlNode * | node | ) |
xmlNode* pcmk_create_html_node | ( | xmlNode * | parent, |
const char * | element_name, | ||
const char * | id, | ||
const char * | class_name, | ||
const char * | text | ||
) |
xmlNode* pcmk_create_xml_text_node | ( | xmlNode * | parent, |
const char * | name, | ||
const char * | content | ||
) |
void purge_diff_markers | ( | xmlNode * | a_node | ) |
Definition at line 1559 of file patchset.c.
gboolean replace_xml_child | ( | xmlNode * | parent, |
xmlNode * | child, | ||
xmlNode * | update, | ||
gboolean | delete_only | ||
) |
xmlNode* subtract_xml_object | ( | xmlNode * | parent, |
xmlNode * | left, | ||
xmlNode * | right, | ||
gboolean | full, | ||
gboolean * | changed, | ||
const char * | marker | ||
) |
Definition at line 1571 of file patchset.c.
int update_validation | ( | xmlNode ** | xml_blob, |
int * | best, | ||
int | max, | ||
gboolean | transform, | ||
gboolean | to_logs | ||
) |
gboolean update_xml_child | ( | xmlNode * | child, |
xmlNode * | to_update | ||
) |
gboolean validate_xml | ( | xmlNode * | xml_blob, |
const char * | validation, | ||
gboolean | to_logs | ||
) |
gboolean validate_xml_verbose | ( | const xmlNode * | xml_blob | ) |
char* xml_get_path | ( | const xmlNode * | xml | ) |
Get an XPath string that matches an XML element as closely as possible.
[in] | xml | The XML element for which to build an XPath string |
xml
, or NULL
if xml
is NULL
.gboolean xml_has_children | ( | const xmlNode * | root | ) |
const char* xml_latest_schema | ( | void | ) |
void xml_log_changes | ( | uint8_t | level, |
const char * | function, | ||
const xmlNode * | xml | ||
) |
Definition at line 522 of file xml_display.c.
void xml_log_patchset | ( | uint8_t | level, |
const char * | function, | ||
const xmlNode * | xml | ||
) |
Definition at line 460 of file patchset_display.c.
void xml_remove_prop | ( | xmlNode * | obj, |
const char * | name | ||
) |