10 #ifndef PCMK__CRM_CLUSTER_COMPAT__H 11 # define PCMK__CRM_CLUSTER_COMPAT__H 14 #include <sys/types.h> 17 #include <libxml/tree.h> 20 #include <corosync/cpg.h> 21 #endif // SUPPORT_COROSYNC 82 const struct cpg_name *group_name,
83 const struct cpg_address *member_list,
84 size_t member_list_entries,
85 const struct cpg_address *left_list,
86 size_t left_list_entries,
87 const struct cpg_address *joined_list,
88 size_t joined_list_entries);
100 void *msg, uint32_t *kind,
const char **from);
102 #endif // SUPPORT_COROSYNC 166 const xmlNode *
data, gboolean ordered);
194 #endif // PCMK_CLUSTER_COMPAT__H guint crm_active_peers(void)
const char * crm_peer_uuid(crm_node_t *node)
crm_node_t * crm_get_peer_full(unsigned int id, const char *uname, int flags)
crm_node_t * crm_get_peer(unsigned int id, const char *uname)
const char * get_local_node_name(void)
const char * name_for_cluster_type(enum cluster_type_e type)
void crm_remote_peer_cache_remove(const char *node_name)
int crm_terminate_member(int nodeid, const char *uname, void *unused)
void crm_peer_destroy(void)
gboolean crm_is_peer_active(const crm_node_t *node)
enum crm_ais_msg_types type
int crm_remote_peer_cache_size(void)
char * pcmk_message_common_cs(cpg_handle_t handle, uint32_t nodeid, uint32_t pid, void *content, uint32_t *kind, const char **from)
void crm_set_status_callback(void(*dispatch)(enum crm_status_type, crm_node_t *, const void *))
int crm_terminate_member_no_mainloop(int nodeid, const char *uname, int *connection)
const char * crm_peer_uname(const char *uuid)
gboolean crm_is_corosync_peer_active(const crm_node_t *node)
pcmk_cluster_t crm_cluster_t
void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node)
gboolean send_cluster_message(const crm_node_t *node, enum crm_ais_msg_types service, const xmlNode *data, gboolean ordered)
enum crm_ais_msg_types text2msg_type(const char *text)
gboolean is_corosync_cluster(void)
guint reap_crm_member(uint32_t id, const char *name)
gboolean send_cluster_text(enum crm_ais_msg_class msg_class, const char *data, gboolean local, const crm_node_t *node, enum crm_ais_msg_types dest)
void crm_cluster_disconnect(pcmk_cluster_t *cluster)
char * get_node_name(uint32_t nodeid)
crm_node_t * crm_remote_peer_get(const char *node_name)
enum cluster_type_e get_cluster_type(void)
gboolean crm_cluster_connect(pcmk_cluster_t *cluster)
gboolean cluster_connect_cpg(pcmk_cluster_t *cluster)
uint32_t get_local_nodeid(cpg_handle_t handle)
void crm_remote_peer_cache_refresh(xmlNode *cib)
void cluster_disconnect_cpg(pcmk_cluster_t *cluster)
void crm_set_autoreap(gboolean enable)
void pcmk_cpg_membership(cpg_handle_t handle, const struct cpg_name *group_name, const struct cpg_address *member_list, size_t member_list_entries, const struct cpg_address *left_list, size_t left_list_entries, const struct cpg_address *joined_list, size_t joined_list_entries)