pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Functions
cib.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <libxml/tree.h>
#include <crm/common/xml.h>
#include <crm/common/cib.h>
#include <crm/common/cib_internal.h>
Include dependency graph for cib.c:

Go to the source code of this file.

Functions

const char * pcmk_cib_xpath_for (const char *element_name)
 Get the relative XPath needed to find a specified CIB element name. More...
 
const char * pcmk__cib_abs_xpath_for (const char *element)
 
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...
 
int pcmk__check_feature_set (const char *cib_version)
 

Function Documentation

◆ pcmk__check_feature_set()

int pcmk__check_feature_set ( const char *  cib_version)

Definition at line 184 of file cib.c.

◆ pcmk__cib_abs_xpath_for()

const char* pcmk__cib_abs_xpath_for ( const char *  element)

Definition at line 133 of file cib.c.

◆ 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 150 of file cib.c.

◆ pcmk_cib_xpath_for()

const char* pcmk_cib_xpath_for ( const char *  element_name)

Get the relative 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 112 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,out]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 172 of file cib.c.

Variable Documentation

◆ name

const char* name

Definition at line 26 of file cib.c.

◆ parent

const char* parent

Definition at line 27 of file cib.c.

◆ path

const char* path

Definition at line 28 of file cib.c.