#include <libxml/tree.h>
Go to the source code of this file.
◆ 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_name | Name 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_name | Name 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] | cib | Top-level CIB XML to search |
[in] | element_name | Name 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.