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;
187 return EPROTONOSUPPORT;
#define PCMK_XE_FENCING_TOPOLOGY
const char * pcmk_cib_xpath_for(const char *element_name)
Get the relative XPath needed to find a specified CIB element name.
#define PCMK_XE_OP_DEFAULTS
#define PCMK_XE_CONSTRAINTS
#define PCMK_XE_RSC_DEFAULTS
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)
xmlNode * get_xpath_object(const char *xpath, xmlNode *xml_obj, int error_level)
xmlNode * pcmk_find_cib_element(xmlNode *cib, const char *element_name)
Find an element in the CIB.
int pcmk__check_feature_set(const char *cib_version)
Wrappers for and extensions to libxml2.
#define PCMK_XE_CONFIGURATION
int compare_version(const char *version1, const char *version2)
#define PCMK_XE_RESOURCES
#define PCMK_XE_CRM_CONFIG