14#include <libxml/tree.h>
114 for (
int lpc = 0; lpc <
PCMK__NELEM(cib_sections); lpc++) {
116 if (pcmk__str_eq(element_name, cib_sections[lpc].
name,
118 return cib_sections[lpc].path;
138 return ((xpath != NULL)? (xpath + 1) : NULL);
152 for (
int lpc = 0; lpc <
PCMK__NELEM(cib_sections); lpc++) {
154 if (pcmk__str_eq(element_name, cib_sections[lpc].
name,
156 return cib_sections[lpc].parent;
188 return EPROTONOSUPPORT;
const char * pcmk_cib_parent_name_for(const char *element_name)
Get the parent element name of a given CIB element name.
const char * pcmk__cib_abs_xpath_for(const char *element)
int pcmk__check_feature_set(const char *cib_version)
xmlNode * pcmk_find_cib_element(xmlNode *cib, const char *element_name)
Find an element in the CIB.
const char * pcmk_cib_xpath_for(const char *element_name)
Get the relative XPath needed to find a specified CIB element name.
int compare_version(const char *version1, const char *version2)
Wrappers for and extensions to libxml2.
#define PCMK_XE_CONSTRAINTS
#define PCMK_XE_OP_DEFAULTS
#define PCMK_XE_CRM_CONFIG
#define PCMK_XE_RESOURCES
#define PCMK_XE_FENCING_TOPOLOGY
#define PCMK_XE_CONFIGURATION
#define PCMK_XE_RSC_DEFAULTS
xmlNode * pcmk__xpath_find_one(xmlDoc *doc, const char *path, uint8_t level)