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
22 /**
23 * \file
24 * \brief Deprecated Pacemaker configuration utilities
25 * \ingroup cib
26 * \deprecated Do not include this header directly. The utilities in this
27 * header, and the header itself, will be removed in a future
28 * release.
29 */
30
31 //! \deprecated Use pcmk_cib_xpath_for() instead
32 const char *get_object_path(const char *object_type);
33
34 //! \deprecated Use pcmk_cib_parent_name_for() instead
35 const char *get_object_parent(const char *object_type);
36
37 //! \deprecated Use pcmk_cib_xpath_for() instead
38 xmlNode *get_object_root(const char *object_type, xmlNode *the_root);
39
40 //! \deprecated Do not use
41 int set_standby(cib_t *the_cib, const char *uuid, const char *scope,
42 const char *standby_value);
43
44 //! \deprecated Do not use
45 int query_node_uname(cib_t * the_cib, const char *uuid, char **uname);
46
47 //! \deprecated Do not use
48 xmlNode *cib_get_generation(cib_t *cib);
49
50 //! \deprecated Do not use
51 const char *cib_pref(GHashTable * options, const char *name);
52
53 //! \deprecated Do not use
54 void cib_metadata(void);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif // PCMK__CRM_CIB_UTIL_COMPAT__H