1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_CIB_UTIL__H
11 # define PCMK__CRM_CIB_UTIL__H
12
13 #include <glib.h>
14 #include <libxml/tree.h>
15 #include <crm/cib/cib_types.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21
22 xmlNode *createEmptyCib(int cib_epoch);
23
24 gboolean cib_version_details(xmlNode * cib, int *admin_epoch, int *epoch, int *updates);
25
26 int update_attr_delegate(cib_t * the_cib, int call_options,
27 const char *section, const char *node_uuid,
28 const char *set_type, const char *set_name,
29 const char *attr_id, const char *attr_name,
30 const char *attr_value, gboolean to_console,
31 const char *user_name, const char *node_type);
32
33 int find_nvpair_attr_delegate(cib_t * the_cib, const char *attr,
34 const char *section, const char *node_uuid,
35 const char *set_type, const char *set_name,
36 const char *attr_id, const char *attr_name,
37 gboolean to_console, char **value, const char *user_name);
38
39 int read_attr_delegate(cib_t * the_cib,
40 const char *section, const char *node_uuid,
41 const char *set_type, const char *set_name,
42 const char *attr_id, const char *attr_name,
43 char **attr_value, gboolean to_console, const char *user_name);
44
45 int delete_attr_delegate(cib_t * the_cib, int options,
46 const char *section, const char *node_uuid,
47 const char *set_type, const char *set_name,
48 const char *attr_id, const char *attr_name,
49 const char *attr_value, gboolean to_console, const char *user_name);
50
51 int query_node_uuid(cib_t * the_cib, const char *uname, char **uuid, int *is_remote_node);
52
53
54 int cib_apply_patch_event(xmlNode *event, xmlNode *input, xmlNode **output,
55 int level);
56
57 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
58 #include <crm/cib/util_compat.h>
59 #endif
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif