pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
cib.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-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__H
11# define PCMK__CRM_CIB__H
12
13# include <glib.h> // gboolean
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
20extern "C" {
21#endif
22
29// Use compare_version() for doing comparisons
30# define CIB_FEATURE_SET "2.0"
31
32/* Core functions */
33
34// NOTE: sbd (as of at least 1.5.2) uses this
35cib_t *cib_new(void);
36
38cib_t *cib_file_new(const char *filename);
39cib_t *cib_remote_new(const char *server, const char *user, const char *passwd, int port,
40 gboolean encrypted);
41
43char *get_shadow_file(const char *name);
44cib_t *cib_shadow_new(const char *name);
45
46void cib_free_notify(cib_t *cib);
47void cib_free_callbacks(cib_t *cib);
48
49// NOTE: sbd (as of at least 1.5.2) uses this
50void cib_delete(cib_t * cib);
51
53int num_cib_op_callbacks(void);
54void remove_cib_op_callback(int call_id, gboolean all_callbacks);
55
56#define CIB_LIBRARY "libcib.so.54"
57
58#ifdef __cplusplus
59}
60#endif
61
62#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
63#include <crm/cib_compat.h>
64#endif
65
66#endif
const char * name
Definition cib.c:26
cib_t * cib_shadow_new(const char *name)
Definition cib_client.c:504
cib_t * cib_remote_new(const char *server, const char *user, const char *passwd, int port, gboolean encrypted)
Definition cib_remote.c:610
cib_t * cib_new_no_shadow(void)
Create a new CIB connection object, ignoring any active shadow CIB.
Definition cib_client.c:531
void cib_delete(cib_t *cib)
Free all memory used by CIB connection.
Definition cib_client.c:721
char * get_shadow_file(const char *name)
Definition cib_client.c:444
int num_cib_op_callbacks(void)
Definition cib_client.c:741
cib_t * cib_new(void)
Create a new CIB connection object.
Definition cib_client.c:562
cib_t * cib_native_new(void)
Definition cib_native.c:451
void remove_cib_op_callback(int call_id, gboolean all_callbacks)
Definition cib_client.c:730
cib_t * cib_file_new(const char *filename)
Definition cib_file.c:637
void cib_dump_pending_callbacks(void)
Definition cib_client.c:759
void cib_free_callbacks(cib_t *cib)
Free all callbacks for a CIB connection.
Definition cib_client.c:708
void cib_free_notify(cib_t *cib)
Definition cib_client.c:686
Deprecated CIB utilities.
Data types for Cluster Information Base access.
IPC interface to Pacemaker daemons.
Wrappers for and extensions to libxml2.