pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
cib.h File Reference

Cluster Configuration. More...

#include <crm/common/ipc.h>
#include <crm/common/xml.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.

Data Structures

struct  cib_api_operations_s
 
struct  cib_s
 

Macros

#define CIB_FEATURE_SET   "2.0"
 
#define cib_default_options   = cib_none
 
#define T_CIB_DIFF_NOTIFY   "cib_diff_notify"
 
#define add_cib_op_callback(cib, id, flag, data, fn)
 
#define CIB_LIBRARY   "libcib.so.4"
 

Typedefs

typedef struct cib_s cib_t
 
typedef struct cib_api_operations_s cib_api_operations_t
 

Enumerations

enum  cib_variant {
  cib_undefined, cib_native, cib_file, cib_remote,
  cib_database
}
 
enum  cib_state { cib_connected_command, cib_connected_query, cib_disconnected }
 
enum  cib_conn_type { cib_command, cib_query, cib_no_connection, cib_command_nonblocking }
 
enum  cib_call_options {
  cib_none = 0x00000000, cib_verbose = 0x00000001, cib_xpath = 0x00000002, cib_multiple = 0x00000004,
  cib_can_create = 0x00000008, cib_discard_reply = 0x00000010, cib_no_children = 0x00000020, cib_xpath_address = 0x00000040,
  cib_mixed_update = 0x00000080, cib_scope_local = 0x00000100, cib_dryrun = 0x00000200, cib_sync_call = 0x00001000,
  cib_no_mtime = 0x00002000, cib_zero_copy = 0x00004000, cib_inhibit_notify = 0x00010000, cib_quorum_override = 0x00100000,
  cib_inhibit_bcast = 0x01000000, cib_force_diff = 0x10000000
}
 

Functions

cib_tcib_new (void)
 
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)
 
char * get_shadow_file (const char *name)
 
cib_tcib_shadow_new (const char *name)
 
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

#define add_cib_op_callback (   cib,
  id,
  flag,
  data,
  fn 
)
Value:
do { \
cib->cmds->register_callback(cib, id, 120, flag, data, #fn, fn); \
} while(0)
char data[0]
Definition: internal.h:58

Definition at line 183 of file cib.h.

#define cib_default_options   = cib_none

Definition at line 78 of file cib.h.

#define CIB_FEATURE_SET   "2.0"

Definition at line 31 of file cib.h.

#define CIB_LIBRARY   "libcib.so.4"

Definition at line 188 of file cib.h.

#define T_CIB_DIFF_NOTIFY   "cib_diff_notify"

Definition at line 79 of file cib.h.

Typedef Documentation

typedef struct cib_s cib_t

Definition at line 83 of file cib.h.

Enumeration Type Documentation

Enumerator
cib_none 
cib_verbose 
cib_xpath 
cib_multiple 
cib_can_create 
cib_discard_reply 
cib_no_children 
cib_xpath_address 
cib_mixed_update 
cib_scope_local 
cib_dryrun 
cib_sync_call 
cib_no_mtime 
cib_zero_copy 
cib_inhibit_notify 
cib_quorum_override 
cib_inhibit_bcast 
cib_force_diff 

Definition at line 57 of file cib.h.

Enumerator
cib_command 
cib_query 
cib_no_connection 
cib_command_nonblocking 

Definition at line 49 of file cib.h.

enum cib_state
Enumerator
cib_connected_command 
cib_connected_query 
cib_disconnected 

Definition at line 43 of file cib.h.

Enumerator
cib_undefined 
cib_native 
cib_file 
cib_remote 
cib_database 

Definition at line 35 of file cib.h.

Function Documentation

void cib_delete ( cib_t cib)

Free all memory used by CIB connection.

Parameters
[in]cibCIB connection to delete

Definition at line 437 of file cib_client.c.

void cib_dump_pending_callbacks ( void  )

Definition at line 682 of file cib_client.c.

cib_t* cib_file_new ( const char *  filename)

Definition at line 477 of file cib_file.c.

void cib_free_callbacks ( cib_t cib)

Free all callbacks for a CIB connection.

Parameters
[in]cibCIB connection to clean up

Definition at line 415 of file cib_client.c.

cib_t* cib_native_new ( void  )

Definition at line 59 of file cib_native.c.

cib_t* cib_new ( void  )

Definition at line 301 of file cib_client.c.

cib_t* cib_new_no_shadow ( void  )

Definition at line 294 of file cib_client.c.

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

Definition at line 115 of file cib_remote.c.

cib_t* cib_shadow_new ( const char *  name)

Definition at line 279 of file cib_client.c.

char* get_shadow_file ( const char *  name)

Definition at line 219 of file cib_client.c.

int num_cib_op_callbacks ( void  )

Definition at line 664 of file cib_client.c.

void remove_cib_op_callback ( int  call_id,
gboolean  all_callbacks 
)

Definition at line 652 of file cib_client.c.