pacemaker 2.1.8-2.1.8
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
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
19extern "C" {
20#endif
21
32const char *get_object_path(const char *object_type);
33
35const char *get_object_parent(const char *object_type);
36
38xmlNode *get_object_root(const char *object_type, xmlNode *the_root);
39
41int set_standby(cib_t *the_cib, const char *uuid, const char *scope,
42 const char *standby_value);
43
45int query_node_uname(cib_t * the_cib, const char *uuid, char **uname);
46
48xmlNode *cib_get_generation(cib_t *cib);
49
51const char *cib_pref(GHashTable * options, const char *name);
52
54void cib_metadata(void);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif // PCMK__CRM_CIB_UTIL_COMPAT__H
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
int set_standby(cib_t *the_cib, const char *uuid, const char *scope, const char *standby_value)
Definition cib_attrs.c:718
const char * get_object_path(const char *object_type)
Definition cib_utils.c:1081
xmlNode * cib_get_generation(cib_t *cib)
Definition cib_utils.c:1066
const char * get_object_parent(const char *object_type)
Definition cib_utils.c:1087
xmlNode * get_object_root(const char *object_type, xmlNode *the_root)
Definition cib_utils.c:1093
void cib_metadata(void)
Definition cib_utils.c:1105
const char * name
Definition cib.c:26
Data types for Cluster Information Base access.
char uname[MAX_NAME]
Definition cpg.c:5
Wrappers for and extensions to libxml2.