pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Functions
cib.h File Reference
#include <libxml/tree.h>
Include dependency graph for cib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * pcmk_cib_xpath_for (const char *element_name)
 Get the XPath needed to find a specified CIB element name. More...
 
const char * pcmk_cib_parent_name_for (const char *element_name)
 Get the parent element name of a given CIB element name. More...
 
xmlNode * pcmk_find_cib_element (xmlNode *cib, const char *element_name)
 Find an element in the CIB. More...
 

Function Documentation

◆ pcmk_cib_parent_name_for()

const char* pcmk_cib_parent_name_for ( const char *  element_name)

Get the parent element name of a given CIB element name.

Parameters
[in]element_nameName of CIB element
Returns
Parent element of element_name (or NULL if none or unknown)
Note
The return value is constant and should not be freed.

Definition at line 131 of file cib.c.

◆ pcmk_cib_xpath_for()

const char* pcmk_cib_xpath_for ( const char *  element_name)

Get the XPath needed to find a specified CIB element name.

Parameters
[in]element_nameName of CIB element
Returns
XPath for finding element_name in CIB XML (or NULL if unknown)
Note
The return value is constant and should not be freed.

Definition at line 110 of file cib.c.

◆ pcmk_find_cib_element()

xmlNode* pcmk_find_cib_element ( xmlNode *  cib,
const char *  element_name 
)

Find an element in the CIB.

Parameters
[in]cibTop-level CIB XML to search
[in]element_nameName of CIB element to search for
Returns
XML element in cib corresponding to element_name (or cib itself if element is unknown or not found)

Definition at line 153 of file cib.c.