pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Functions
cib_client.c File Reference
#include <crm_internal.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/cib/internal.h>
#include <crm/common/xml.h>
Include dependency graph for cib_client.c:

Go to the source code of this file.

Functions

char * get_shadow_file (const char *suffix)
 
cib_tcib_shadow_new (const char *shadow)
 
cib_tcib_new_no_shadow (void)
 Create a new CIB connection object, ignoring any active shadow CIB. More...
 
cib_tcib_new (void)
 Create a new CIB connection object. More...
 
cib_tcib_new_variant (void)
 
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 remove_cib_op_callback (int call_id, gboolean all_callbacks)
 
int num_cib_op_callbacks (void)
 
void cib_dump_pending_callbacks (void)
 
cib_callback_client_tcib__lookup_id (int call_id)
 

Function Documentation

◆ cib__lookup_id()

cib_callback_client_t* cib__lookup_id ( int  call_id)

Definition at line 768 of file cib_client.c.

◆ 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 721 of file cib_client.c.

◆ cib_dump_pending_callbacks()

void cib_dump_pending_callbacks ( void  )

Definition at line 759 of file cib_client.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 708 of file cib_client.c.

◆ cib_free_notify()

void cib_free_notify ( cib_t cib)

Definition at line 686 of file cib_client.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 562 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 531 of file cib_client.c.

◆ cib_new_variant()

cib_t* cib_new_variant ( void  )

Definition at line 622 of file cib_client.c.

◆ cib_shadow_new()

cib_t* cib_shadow_new ( const char *  shadow)

Definition at line 504 of file cib_client.c.

◆ get_shadow_file()

char* get_shadow_file ( const char *  suffix)

Definition at line 444 of file cib_client.c.

◆ num_cib_op_callbacks()

int num_cib_op_callbacks ( void  )

Definition at line 741 of file cib_client.c.

◆ remove_cib_op_callback()

void remove_cib_op_callback ( int  call_id,
gboolean  all_callbacks 
)

Definition at line 730 of file cib_client.c.