10 #ifndef LRMD_INTERNAL__H 11 #define LRMD_INTERNAL__H 15 #include <libxml/tree.h> 22 int lrmd__new(
lrmd_t **api,
const char *nodename,
const char *server,
int port);
25 const char *node, uint32_t nodeid,
26 const char *attr_name,
const char *attr_value);
28 const char *node, uint32_t nodeid,
const char *state);
30 const char *
target,
const char *task,
31 const char *desc,
int op_rc);
36 const char *msg_type);
60 const char *node_name,
const char *session_id,
79 #ifdef HAVE_GNUTLS_GNUTLS_H 80 int lrmd__init_remote_key(gnutls_datum_t *key);
ocf_exitcode
Exit status codes for resource agents.
int lrmd_send_resource_alert(lrmd_t *lrmd, GList *alert_list, const char *node, lrmd_event_data_t *op)
void remote_proxy_disconnected(gpointer data)
int lrmd__validate_remote_settings(lrmd_t *lrmd, GHashTable *hash)
struct mainloop_io_s mainloop_io_t
void remote_proxy_relay_event(remote_proxy_t *proxy, xmlNode *msg)
int remote_proxy_dispatch(const char *buffer, ssize_t length, gpointer userdata)
Wrappers for and extensions to glib mainloop.
Formatted output for pacemaker tools.
int lrmd_send_node_alert(lrmd_t *lrmd, GList *alert_list, const char *node, uint32_t nodeid, const char *state)
struct crm_ipc_s crm_ipc_t
int lrmd_send_attribute_alert(lrmd_t *lrmd, GList *alert_list, const char *node, uint32_t nodeid, const char *attr_name, const char *attr_value)
struct remote_proxy_s remote_proxy_t
int lrmd__new(lrmd_t **api, const char *nodename, const char *server, int port)
void lrmd__reset_result(lrmd_event_data_t *event)
void lrmd__register_messages(pcmk__output_t *out)
void remote_proxy_cb(lrmd_t *lrmd, const char *node_name, xmlNode *msg)
remote_proxy_t * remote_proxy_new(lrmd_t *lrmd, struct ipc_client_callbacks *proxy_callbacks, const char *node_name, const char *session_id, const char *channel)
void lrmd__set_result(lrmd_event_data_t *event, enum ocf_exitcode rc, int op_status, const char *exit_reason)
void remote_proxy_nack_shutdown(lrmd_t *lrmd)
We're not going to shutdown as response to a remote proxy shutdown request.
This structure contains everything that makes up a single output formatter.
void remote_proxy_free(gpointer data)
void remote_proxy_relay_response(remote_proxy_t *proxy, xmlNode *msg, int msg_id)
int lrmd__remote_send_xml(pcmk__remote_t *session, xmlNode *msg, uint32_t id, const char *msg_type)
IPC interface to Pacemaker daemons.
void remote_proxy_ack_shutdown(lrmd_t *lrmd)
Send an acknowledgment of a remote proxy shutdown request.
int lrmd_send_fencing_alert(lrmd_t *lrmd, GList *alert_list, const char *target, const char *task, const char *desc, int op_rc)