pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
util_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021-2024 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_CIB_UTIL_COMPAT__H
11 # define PCMK__CRM_CIB_UTIL_COMPAT__H
12 
13 #include <libxml/tree.h> // xmlNode
14 
15 #include <crm/cib/cib_types.h> // cib_t
16 
17 #include <crm/common/xml.h>
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
31 const char *get_object_path(const char *object_type);
33 
35 const char *get_object_parent(const char *object_type);
36 
38 xmlNode *get_object_root(const char *object_type, xmlNode *the_root);
39 
41 int set_standby(cib_t *the_cib, const char *uuid, const char *scope,
42  const char *standby_value);
43 
45 int query_node_uname(cib_t * the_cib, const char *uuid, char **uname);
46 
48 xmlNode *cib_get_generation(cib_t *cib);
49 
51 const char *cib_pref(GHashTable * options, const char *name);
52 
54 void cib_metadata(void);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif // PCMK__CRM_CIB_UTIL_COMPAT__H
const char * name
Definition: cib.c:26
xmlNode * cib_get_generation(cib_t *cib)
Definition: cib_utils.c:1066
Data types for Cluster Information Base access.
int set_standby(cib_t *the_cib, const char *uuid, const char *scope, const char *standby_value)
Definition: cib_attrs.c:718
int query_node_uname(cib_t *the_cib, const char *uuid, char **uname)
Definition: cib_attrs.c:674
const char * cib_pref(GHashTable *options, const char *name)
Definition: cib_utils.c:1099
const char * get_object_path(const char *object_type)
Definition: cib_utils.c:1081
Wrappers for and extensions to libxml2.
void cib_metadata(void)
Definition: cib_utils.c:1105
xmlNode * get_object_root(const char *object_type, xmlNode *the_root)
Definition: cib_utils.c:1093
char uname[MAX_NAME]
Definition: cpg.c:53
const char * get_object_parent(const char *object_type)
Definition: cib_utils.c:1087