31 # define CIB_FEATURE_SET "2.0"
78 #define cib_default_options = cib_none
79 #define T_CIB_DIFF_NOTIFY "cib_diff_notify"
92 int rc, xmlNode * output));
95 void (*callback) (
const char *event, xmlNode * msg));
98 void (*callback) (
const char *event, xmlNode * msg));
105 int (*
ping) (
cib_t * cib, xmlNode ** output_data,
int call_options);
107 int (*
query) (
cib_t * cib,
const char *section, xmlNode ** output_data,
int call_options);
109 xmlNode ** output_data,
int call_options);
116 int (*
sync) (
cib_t * cib,
const char *section,
int call_options);
126 int (*
delete) (
cib_t * cib,
const char *section, xmlNode *
data,
int call_options);
128 int (*
erase) (
cib_t * cib, xmlNode ** output_data,
int call_options);
136 void *user_data,
const char *callback_name,
137 void (*callback) (xmlNode *, int, int, xmlNode *,
void *));
140 gboolean only_success,
void *user_data,
141 const char *callback_name,
142 void (*callback)(xmlNode *, int, int,
144 void (*free_func)(
void *));
183 # define add_cib_op_callback(cib, id, flag, data, fn) do { \
184 cib->cmds->register_callback(cib, id, 120, flag, data, #fn, fn); \
188 # define CIB_LIBRARY "libcib.so.4"
int(* query)(cib_t *cib, const char *section, xmlNode **output_data, int call_options)
cib_t * cib_shadow_new(const char *name)
cib_t * cib_remote_new(const char *server, const char *user, const char *passwd, int port, gboolean encrypted)
int(* set_slave)(cib_t *cib, int call_options)
gboolean(* register_callback_full)(cib_t *cib, int call_id, int timeout, gboolean only_success, void *user_data, const char *callback_name, void(*callback)(xmlNode *, int, int, xmlNode *, void *), void(*free_func)(void *))
void remove_cib_op_callback(int call_id, gboolean all_callbacks)
int(* inputfd)(cib_t *cib)
int(* signon_raw)(cib_t *cib, const char *name, enum cib_conn_type type, int *event_fd)
int(* noop)(cib_t *cib, int call_options)
int(* set_slave_all)(cib_t *cib, int call_options)
int(* set_op_callback)(cib_t *cib, void(*callback)(const xmlNode *msg, int callid, int rc, xmlNode *output))
int(* replace)(cib_t *cib, const char *section, xmlNode *data, int call_options)
int(* set_connection_dnotify)(cib_t *cib, void(*dnotify)(gpointer user_data))
int(* update)(cib_t *cib, const char *section, xmlNode *data, int call_options)
char * get_shadow_file(const char *name)
gboolean(* register_callback)(cib_t *cib, int call_id, int timeout, gboolean only_success, void *user_data, const char *callback_name, void(*callback)(xmlNode *, int, int, xmlNode *, void *))
void cib_delete(cib_t *cib)
Free all memory used by CIB connection.
int(* add_notify_callback)(cib_t *cib, const char *event, void(*callback)(const char *event, xmlNode *msg))
int(* bump_epoch)(cib_t *cib, int call_options)
int(* modify)(cib_t *cib, const char *section, xmlNode *data, int call_options)
struct cib_api_operations_s cib_api_operations_t
int(* upgrade)(cib_t *cib, int call_options)
cib_api_operations_t * cmds
void cib_free_callbacks(cib_t *cib)
Free all callbacks for a CIB connection.
int(* quit)(cib_t *cib, int call_options)
int(* ping)(cib_t *cib, xmlNode **output_data, int call_options)
void(* op_callback)(const xmlNode *msg, int call_id, int rc, xmlNode *output)
int(* register_notification)(cib_t *cib, const char *callback, int enabled)
int(* delete_absolute)(cib_t *cib, const char *section, xmlNode *data, int call_options)
int(* erase)(cib_t *cib, xmlNode **output_data, int call_options)
Wrappers for and extensions to libxml2.
int(* set_master)(cib_t *cib, int call_options)
int(* query_from)(cib_t *cib, const char *host, const char *section, xmlNode **output_data, int call_options)
int(* sync_from)(cib_t *cib, const char *host, const char *section, int call_options)
cib_t * cib_native_new(void)
int num_cib_op_callbacks(void)
int(* sync)(cib_t *cib, const char *section, int call_options)
int(* del_notify_callback)(cib_t *cib, const char *event, void(*callback)(const char *event, xmlNode *msg))
cib_t * cib_file_new(const char *filename)
int(* signon)(cib_t *cib, const char *name, enum cib_conn_type type)
cib_t * cib_new_no_shadow(void)
int(* is_master)(cib_t *cib)
Wrappers for and extensions to libqb IPC.
int(* create)(cib_t *cib, const char *section, xmlNode *data, int call_options)
int(* signoff)(cib_t *cib)
void cib_dump_pending_callbacks(void)
enum crm_ais_msg_types type