pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
cib.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_COMMON_CIB__H
11 # define PCMK__CRM_COMMON_CIB__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include <libxml/tree.h> // xmlNode
18 
19 const char *pcmk_cib_xpath_for(const char *element_name);
20 const char *pcmk_cib_parent_name_for(const char *element_name);
21 xmlNode *pcmk_find_cib_element(xmlNode *cib, const char *element_name);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif // PCMK__COMMON_CIB__H
xmlNode * pcmk_find_cib_element(xmlNode *cib, const char *element_name)
Find an element in the CIB.
Definition: cib.c:153
const char * pcmk_cib_parent_name_for(const char *element_name)
Get the parent element name of a given CIB element name.
Definition: cib.c:131
const char * pcmk_cib_xpath_for(const char *element_name)
Get the XPath needed to find a specified CIB element name.
Definition: cib.c:110