pacemaker  2.0.3-4b1f869f0f
Scalable High-Availability cluster resource manager
cib.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2019 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 CIB__H
11 # define CIB__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
23 # include <glib.h> // gboolean
24 # include <crm/common/ipc.h>
25 # include <crm/common/xml.h>
26 # include <crm/cib/cib_types.h>
27 # include <crm/cib/util.h>
28 
29 # define CIB_FEATURE_SET "2.0"
30 
31 /* use compare_version() for doing comparisons */
32 
33 #define T_CIB_DIFF_NOTIFY "cib_diff_notify"
34 
35 /* Core functions */
36 cib_t *cib_new(void);
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 
43 char *get_shadow_file(const char *name);
44 cib_t *cib_shadow_new(const char *name);
45 
46 void cib_free_callbacks(cib_t *cib);
47 void cib_delete(cib_t * cib);
48 
50 int num_cib_op_callbacks(void);
51 void remove_cib_op_callback(int call_id, gboolean all_callbacks);
52 
53 # define CIB_LIBRARY "libcib.so.27"
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif
cib_remote_new
cib_t * cib_remote_new(const char *server, const char *user, const char *passwd, int port, gboolean encrypted)
Definition: cib_remote.c:105
cib_native_new
cib_t * cib_native_new(void)
Definition: cib_native.c:55
num_cib_op_callbacks
int num_cib_op_callbacks(void)
Definition: cib_client.c:653
util.h
xml.h
Wrappers for and extensions to libxml2.
cib_shadow_new
cib_t * cib_shadow_new(const char *name)
Definition: cib_client.c:268
cib_dump_pending_callbacks
void cib_dump_pending_callbacks(void)
Definition: cib_client.c:671
cib_free_callbacks
void cib_free_callbacks(cib_t *cib)
Free all callbacks for a CIB connection.
Definition: cib_client.c:404
ipc.h
Wrappers for and extensions to libqb IPC.
cib_file_new
cib_t * cib_file_new(const char *filename)
Definition: cib_file.c:459
cib_s
Definition: cib_types.h:134
cib_types.h
Data types for Cluster Information Base access.
cib_delete
void cib_delete(cib_t *cib)
Free all memory used by CIB connection.
Definition: cib_client.c:426
remove_cib_op_callback
void remove_cib_op_callback(int call_id, gboolean all_callbacks)
Definition: cib_client.c:641
cib_new_no_shadow
cib_t * cib_new_no_shadow(void)
Definition: cib_client.c:283
cib_new
cib_t * cib_new(void)
Definition: cib_client.c:290
get_shadow_file
char * get_shadow_file(const char *name)
Definition: cib_client.c:208