1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_CIB__H
11 # define PCMK__CRM_CIB__H
12
13 # include <glib.h>
14 # include <crm/common/ipc.h>
15 # include <crm/common/xml.h>
16 # include <crm/cib/cib_types.h>
17 # include <crm/cib/util.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23
24
25
26
27
28
29
30 # define CIB_FEATURE_SET "2.0"
31
32
33
34
35 cib_t *cib_new(void);
36
37 cib_t *cib_native_new(void);
38 cib_t *cib_file_new(const char *filename);
39 cib_t *cib_remote_new(const char *server, const char *user, const char *passwd, int port,
40 gboolean encrypted);
41
42 cib_t *cib_new_no_shadow(void);
43 char *get_shadow_file(const char *name);
44 cib_t *cib_shadow_new(const char *name);
45
46 void cib_free_notify(cib_t *cib);
47 void cib_free_callbacks(cib_t *cib);
48
49
50 void cib_delete(cib_t * cib);
51
52 void cib_dump_pending_callbacks(void);
53 int num_cib_op_callbacks(void);
54 void remove_cib_op_callback(int call_id, gboolean all_callbacks);
55
56 # define CIB_LIBRARY "libcib.so.27"
57
58 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
59 #include <crm/cib_compat.h>
60 #endif
61
62 #ifdef __cplusplus
63 }
64 #endif
65
66 #endif