pacemaker  2.0.2-debe490
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 <glib.h>
#include <libxml/tree.h>
#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 T_CIB_DIFF_NOTIFY   "cib_diff_notify"
 
#define CIB_LIBRARY   "libcib.so.27"
 

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 CIB_FEATURE_SET   "2.0"

Definition at line 28 of file cib.h.

#define CIB_LIBRARY   "libcib.so.27"

Definition at line 180 of file cib.h.

#define T_CIB_DIFF_NOTIFY   "cib_diff_notify"

Definition at line 75 of file cib.h.

Typedef Documentation

typedef struct cib_s cib_t

Definition at line 79 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 54 of file cib.h.

Enumerator
cib_command 
cib_query 
cib_no_connection 
cib_command_nonblocking 

Definition at line 46 of file cib.h.

enum cib_state
Enumerator
cib_connected_command 
cib_connected_query 
cib_disconnected 

Definition at line 40 of file cib.h.

Enumerator
cib_undefined 
cib_native 
cib_file 
cib_remote 
cib_database 

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

void cib_dump_pending_callbacks ( void  )

Definition at line 671 of file cib_client.c.

cib_t* cib_file_new ( const char *  filename)

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

cib_t* cib_native_new ( void  )

Definition at line 56 of file cib_native.c.

cib_t* cib_new ( void  )

Definition at line 290 of file cib_client.c.

cib_t* cib_new_no_shadow ( void  )

Definition at line 283 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 105 of file cib_remote.c.

cib_t* cib_shadow_new ( const char *  name)

Definition at line 268 of file cib_client.c.

char* get_shadow_file ( const char *  name)

Definition at line 208 of file cib_client.c.

int num_cib_op_callbacks ( void  )

Definition at line 653 of file cib_client.c.

void remove_cib_op_callback ( int  call_id,
gboolean  all_callbacks 
)

Definition at line 641 of file cib_client.c.