pacemaker  2.1.6-802a72226b
Scalable High-Availability cluster resource manager
Macros | Functions
cib.h File Reference

Cluster Configuration. More...

#include <glib.h>
#include <crm/common/ipc.h>
#include <crm/common/xml.h>
#include <crm/cib/cib_types.h>
#include <crm/cib/util.h>
Include dependency graph for cib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CIB_FEATURE_SET   "2.0"
 
#define T_CIB_DIFF_NOTIFY   "cib_diff_notify"
 
#define CIB_LIBRARY   "libcib.so.27"
 

Functions

cib_tcib_new (void)
 Create a new CIB connection object. More...
 
cib_tcib_native_new (void)
 
cib_tcib_file_new (const char *filename)
 
cib_tcib_remote_new (const char *server, const char *user, const char *passwd, int port, gboolean encrypted)
 
cib_tcib_new_no_shadow (void)
 Create a new CIB connection object, ignoring any active shadow CIB. More...
 
char * get_shadow_file (const char *name)
 
cib_tcib_shadow_new (const char *name)
 
void cib_free_notify (cib_t *cib)
 
void cib_free_callbacks (cib_t *cib)
 Free all callbacks for a CIB connection. More...
 
void cib_delete (cib_t *cib)
 Free all memory used by CIB connection. More...
 
void cib_dump_pending_callbacks (void)
 
int num_cib_op_callbacks (void)
 
void remove_cib_op_callback (int call_id, gboolean all_callbacks)
 

Detailed Description

Cluster Configuration.

Definition in file cib.h.

Macro Definition Documentation

◆ CIB_FEATURE_SET

#define CIB_FEATURE_SET   "2.0"

Definition at line 29 of file cib.h.

◆ CIB_LIBRARY

#define CIB_LIBRARY   "libcib.so.27"

Definition at line 54 of file cib.h.

◆ T_CIB_DIFF_NOTIFY

#define T_CIB_DIFF_NOTIFY   "cib_diff_notify"

Definition at line 33 of file cib.h.

Function Documentation

◆ cib_delete()

void cib_delete ( cib_t cib)

Free all memory used by CIB connection.

Parameters
[in,out]cibCIB connection to delete

Definition at line 700 of file cib_client.c.

◆ cib_dump_pending_callbacks()

void cib_dump_pending_callbacks ( void  )

Definition at line 738 of file cib_client.c.

◆ cib_file_new()

cib_t* cib_file_new ( const char *  filename)

Definition at line 518 of file cib_file.c.

◆ cib_free_callbacks()

void cib_free_callbacks ( cib_t cib)

Free all callbacks for a CIB connection.

Parameters
[in,out]cibCIB connection to clean up

Definition at line 687 of file cib_client.c.

◆ cib_free_notify()

void cib_free_notify ( cib_t cib)

Definition at line 665 of file cib_client.c.

◆ cib_native_new()

cib_t* cib_native_new ( void  )

Definition at line 466 of file cib_native.c.

◆ cib_new()

cib_t* cib_new ( void  )

Create a new CIB connection object.

Create a new live, remote, file, or shadow file CIB connection object based on the values of CIB-related environment variables (CIB_shadow, CIB_file, CIB_port, CIB_server, CIB_user, and CIB_passwd). The object will not be connected.

Returns
Newly allocated CIB connection object
Note
The CIB API does not fully support opening multiple CIB connection objects simultaneously, so the returned object should be treated as a singleton.

Definition at line 535 of file cib_client.c.

◆ cib_new_no_shadow()

cib_t* cib_new_no_shadow ( void  )

Create a new CIB connection object, ignoring any active shadow CIB.

Create a new live, file, or remote CIB connection object based on the values of CIB-related environment variables (CIB_file, CIB_port, CIB_server, CIB_user, and CIB_passwd). The object will not be connected.

Returns
Newly allocated CIB connection object
Note
The CIB API does not fully support opening multiple CIB connection objects simultaneously, so the returned object should be treated as a singleton.

Definition at line 504 of file cib_client.c.

◆ cib_remote_new()

cib_t* cib_remote_new ( const char *  server,
const char *  user,
const char *  passwd,
int  port,
gboolean  encrypted 
)

Definition at line 585 of file cib_remote.c.

◆ cib_shadow_new()

cib_t* cib_shadow_new ( const char *  name)

Definition at line 477 of file cib_client.c.

◆ get_shadow_file()

char* get_shadow_file ( const char *  name)

Definition at line 417 of file cib_client.c.

◆ num_cib_op_callbacks()

int num_cib_op_callbacks ( void  )

Definition at line 720 of file cib_client.c.

◆ remove_cib_op_callback()

void remove_cib_op_callback ( int  call_id,
gboolean  all_callbacks 
)

Definition at line 709 of file cib_client.c.