pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Data Structures | Typedefs | Functions
lrmd_internal.h File Reference
#include <stdint.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/ipc.h>
#include <crm/common/mainloop.h>
#include <crm/common/output_internal.h>
#include <crm/common/remote_internal.h>
#include <crm/lrmd.h>
Include dependency graph for lrmd_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  remote_proxy_s
 

Typedefs

typedef struct remote_proxy_s remote_proxy_t
 

Functions

int lrmd__new (lrmd_t **api, const char *nodename, const char *server, int port)
 
int lrmd_send_attribute_alert (lrmd_t *lrmd, const GList *alert_list, const char *node, uint32_t nodeid, const char *attr_name, const char *attr_value)
 
int lrmd_send_node_alert (lrmd_t *lrmd, const GList *alert_list, const char *node, uint32_t nodeid, const char *state)
 
int lrmd_send_fencing_alert (lrmd_t *lrmd, const GList *alert_list, const char *target, const char *task, const char *desc, int op_rc)
 
int lrmd_send_resource_alert (lrmd_t *lrmd, const GList *alert_list, const char *node, const lrmd_event_data_t *op)
 
int lrmd__remote_send_xml (pcmk__remote_t *session, xmlNode *msg, uint32_t id, const char *msg_type)
 
int lrmd__metadata_async (const lrmd_rsc_info_t *rsc, void(*callback)(int pid, const pcmk__action_result_t *result, void *user_data), void *user_data)
 
void lrmd__set_result (lrmd_event_data_t *event, enum ocf_exitcode rc, int op_status, const char *exit_reason)
 
void lrmd__reset_result (lrmd_event_data_t *event)
 
time_t lrmd__uptime (lrmd_t *lrmd)
 
const char * lrmd__node_start_state (lrmd_t *lrmd)
 
remote_proxy_tremote_proxy_new (lrmd_t *lrmd, struct ipc_client_callbacks *proxy_callbacks, const char *node_name, const char *session_id, const char *channel)
 
int lrmd__validate_remote_settings (lrmd_t *lrmd, GHashTable *hash)
 
void remote_proxy_cb (lrmd_t *lrmd, const char *node_name, xmlNode *msg)
 
void remote_proxy_ack_shutdown (lrmd_t *lrmd)
 
void remote_proxy_nack_shutdown (lrmd_t *lrmd)
 
int remote_proxy_dispatch (const char *buffer, ssize_t length, gpointer userdata)
 
void remote_proxy_disconnected (gpointer data)
 
void remote_proxy_free (gpointer data)
 
void remote_proxy_relay_event (remote_proxy_t *proxy, xmlNode *msg)
 
void remote_proxy_relay_response (remote_proxy_t *proxy, xmlNode *msg, int msg_id)
 
void lrmd__register_messages (pcmk__output_t *out)
 

Typedef Documentation

◆ remote_proxy_t

Function Documentation

◆ lrmd__metadata_async()

int lrmd__metadata_async ( const lrmd_rsc_info_t rsc,
void(*)(int pid, const pcmk__action_result_t *result, void *user_data)  callback,
void *  user_data 
)

Definition at line 2425 of file lrmd_client.c.

◆ lrmd__new()

int lrmd__new ( lrmd_t **  api,
const char *  nodename,
const char *  server,
int  port 
)

Definition at line 2247 of file lrmd_client.c.

◆ lrmd__node_start_state()

const char* lrmd__node_start_state ( lrmd_t lrmd)

Definition at line 2561 of file lrmd_client.c.

◆ lrmd__register_messages()

void lrmd__register_messages ( pcmk__output_t out)

Definition at line 144 of file lrmd_output.c.

◆ lrmd__remote_send_xml()

int lrmd__remote_send_xml ( pcmk__remote_t session,
xmlNode *  msg,
uint32_t  id,
const char *  msg_type 
)

◆ lrmd__reset_result()

void lrmd__reset_result ( lrmd_event_data_t event)

Definition at line 2525 of file lrmd_client.c.

◆ lrmd__set_result()

void lrmd__set_result ( lrmd_event_data_t event,
enum ocf_exitcode  rc,
int  op_status,
const char *  exit_reason 
)

Definition at line 2506 of file lrmd_client.c.

◆ lrmd__uptime()

time_t lrmd__uptime ( lrmd_t lrmd)

Definition at line 2549 of file lrmd_client.c.

◆ lrmd__validate_remote_settings()

int lrmd__validate_remote_settings ( lrmd_t lrmd,
GHashTable *  hash 
)

Definition at line 947 of file lrmd_client.c.

◆ lrmd_send_attribute_alert()

int lrmd_send_attribute_alert ( lrmd_t lrmd,
const GList *  alert_list,
const char *  node,
uint32_t  nodeid,
const char *  attr_name,
const char *  attr_value 
)

Definition at line 237 of file lrmd_alerts.c.

◆ lrmd_send_fencing_alert()

int lrmd_send_fencing_alert ( lrmd_t lrmd,
const GList *  alert_list,
const char *  target,
const char *  task,
const char *  desc,
int  op_rc 
)

Definition at line 310 of file lrmd_alerts.c.

◆ lrmd_send_node_alert()

int lrmd_send_node_alert ( lrmd_t lrmd,
const GList *  alert_list,
const char *  node,
uint32_t  nodeid,
const char *  state 
)

Definition at line 275 of file lrmd_alerts.c.

◆ lrmd_send_resource_alert()

int lrmd_send_resource_alert ( lrmd_t lrmd,
const GList *  alert_list,
const char *  node,
const lrmd_event_data_t op 
)

Definition at line 345 of file lrmd_alerts.c.

◆ remote_proxy_ack_shutdown()

void remote_proxy_ack_shutdown ( lrmd_t lrmd)

Definition at line 46 of file proxy_common.c.

◆ remote_proxy_cb()

void remote_proxy_cb ( lrmd_t lrmd,
const char *  node_name,
xmlNode *  msg 
)

Definition at line 207 of file proxy_common.c.

◆ remote_proxy_disconnected()

void remote_proxy_disconnected ( gpointer  data)

Definition at line 149 of file proxy_common.c.

◆ remote_proxy_dispatch()

int remote_proxy_dispatch ( const char *  buffer,
ssize_t  length,
gpointer  userdata 
)

Definition at line 120 of file proxy_common.c.

◆ remote_proxy_free()

void remote_proxy_free ( gpointer  data)

Definition at line 109 of file proxy_common.c.

◆ remote_proxy_nack_shutdown()

void remote_proxy_nack_shutdown ( lrmd_t lrmd)

Definition at line 61 of file proxy_common.c.

◆ remote_proxy_new()

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 
)

Definition at line 167 of file proxy_common.c.

◆ remote_proxy_relay_event()

void remote_proxy_relay_event ( remote_proxy_t proxy,
xmlNode *  msg 
)

Definition at line 70 of file proxy_common.c.

◆ remote_proxy_relay_response()

void remote_proxy_relay_response ( remote_proxy_t proxy,
xmlNode *  msg,
int  msg_id 
)

Definition at line 83 of file proxy_common.c.