#include <crm_internal.h>
#include <stdio.h>
#include <libxml/tree.h>
#include <crm/msg_xml.h>
#include <crm/common/cib.h>
#include <crm/common/cib_internal.h>
Go to the source code of this file.
◆ pcmk__cib_abs_xpath_for()
| const char* pcmk__cib_abs_xpath_for |
( |
const char * |
element | ) |
|
◆ 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 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_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 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] | 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 172 of file cib.c.
◆ name
Definition at line 26 of file cib.c.
◆ parent
Definition at line 27 of file cib.c.
◆ path
Definition at line 28 of file cib.c.