10 #ifndef PCMK__CRM_CIB_CIB_TYPES__H 11 # define PCMK__CRM_CIB_CIB_TYPES__H 14 # include <libxml/tree.h> 34 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 37 #endif // !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 108 #endif // !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 115 #endif // !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 141 void (*callback) (
const char *event,
144 void (*callback) (
const char *event,
147 void (*dnotify) (gpointer user_data));
155 int (*
ping) (
cib_t *cib, xmlNode **output_data,
int call_options);
156 int (*
query) (
cib_t *cib,
const char *section, xmlNode **output_data,
159 xmlNode **output_data,
int call_options);
173 int (*
sync) (
cib_t *cib,
const char *section,
int call_options);
189 int (*
remove) (
cib_t *cib,
const char *section, xmlNode *
data,
191 int (*
erase) (
cib_t *cib, xmlNode **output_data,
int call_options);
203 gboolean only_success,
void *user_data,
204 const char *callback_name,
205 void (*callback) (xmlNode*, int, int,
208 gboolean only_success,
void *user_data,
209 const char *callback_name,
210 void (*callback)(xmlNode *, int, int,
212 void (*free_func)(
void *));
252 const char **sync_id);
356 #endif // PCMK__CRM_CIB_CIB_TYPES__H
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 *))
int(* delete_absolute)(cib_t *cib, const char *section, xmlNode *data, int call_options)
int(* signoff)(cib_t *cib)
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 *))
int(* signon_raw)(cib_t *cib, const char *name, enum cib_conn_type type, int *event_fd)
int(* inputfd)(cib_t *cib)
enum crm_ais_msg_types type
int(* set_secondary)(cib_t *cib, int call_options)
Set the local CIB manager as a secondary instance.
int(* set_op_callback)(cib_t *cib, void(*callback)(const xmlNode *msg, int callid, int rc, xmlNode *output))
int(* sync)(cib_t *cib, const char *section, int call_options)
int(* set_connection_dnotify)(cib_t *cib, void(*dnotify)(gpointer user_data))
int(* query_from)(cib_t *cib, const char *host, const char *section, xmlNode **output_data, int call_options)
cib_api_operations_t * cmds
int(* set_slave)(cib_t *cib, int call_options)
int(* signon)(cib_t *cib, const char *name, enum cib_conn_type type)
int(* quit)(cib_t *cib, int call_options)
int(* modify)(cib_t *cib, const char *section, xmlNode *data, int call_options)
void(* op_callback)(const xmlNode *msg, int call_id, int rc, xmlNode *output)
int(* create)(cib_t *cib, const char *section, xmlNode *data, int call_options)
Wrappers for and extensions to libxml2.
int(* query)(cib_t *cib, const char *section, xmlNode **output_data, int call_options)
int(* is_master)(cib_t *cib)
int(* replace)(cib_t *cib, const char *section, xmlNode *data, int call_options)
int(* add_notify_callback)(cib_t *cib, const char *event, void(*callback)(const char *event, xmlNode *msg))
#define PCMK_ALLOW_DEPRECATED
Allow use of deprecated Pacemaker APIs.
int(* sync_from)(cib_t *cib, const char *host, const char *section, int call_options)
int(* register_notification)(cib_t *cib, const char *callback, int enabled)
int(* ping)(cib_t *cib, xmlNode **output_data, int call_options)
int(* update)(cib_t *cib, const char *section, xmlNode *data, int call_options)
int(* set_primary)(cib_t *cib, int call_options)
Set the local CIB manager as the cluster's primary instance.
int(* noop)(cib_t *cib, int call_options)
int(* end_transaction)(cib_t *cib, bool commit, int call_options)
End and optionally commit this client's CIB transaction.
int(* set_slave_all)(cib_t *cib, int call_options)
int(* del_notify_callback)(cib_t *cib, const char *event, void(*callback)(const char *event, xmlNode *msg))
struct cib_api_operations_s cib_api_operations_t
int(* set_master)(cib_t *cib, int call_options)
IPC interface to Pacemaker daemons.
void(* set_user)(cib_t *cib, const char *user)
Set the user as whom all CIB requests via methods will be executed.
int(* bump_epoch)(cib_t *cib, int call_options)
int(* init_transaction)(cib_t *cib)
Initiate an atomic CIB transaction for this client.
int(* client_id)(const cib_t *cib, const char **async_id, const char **sync_id)
Get the given CIB connection's unique client identifier(s)
int(* upgrade)(cib_t *cib, int call_options)
Process request when the client commits the active transaction.
int(* erase)(cib_t *cib, xmlNode **output_data, int call_options)