10 #ifndef PCMK__CRM_CLUSTER__H 11 # define PCMK__CRM_CLUSTER__H 15 # include <libxml/tree.h> 24 # include <corosync/cpg.h> 45 #define CRM_NODE_LOST "lost" 49 #define CRM_NODE_MEMBER "member" 148 # if SUPPORT_COROSYNC 153 struct cpg_name group;
162 cpg_handle_t cpg_handle;
181 #endif // SUPPORT_COROSYNC 242 static inline const char *
253 default:
return "invalid";
257 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) int pcmk_cluster_disconnect(pcmk_cluster_t *cluster)
Disconnect from the cluster layer.
struct crm_peer_node_s crm_node_t
pcmk_cluster_t * pcmk_cluster_new(void)
Allocate a new pcmk_cluster_t object.
const char * pcmk_cluster_layer_text(enum pcmk_cluster_layer layer)
Get a log-friendly string equivalent of a cluster layer.
void(* destroy)(gpointer)
GHashTable * crm_remote_peer_cache
int pcmk_cluster_connect(pcmk_cluster_t *cluster)
void pcmk_cluster_free(pcmk_cluster_t *cluster)
Free a pcmk_cluster_t object and its dynamically allocated members.
int pcmk_cluster_set_destroy_fn(pcmk_cluster_t *cluster, void(*fn)(gpointer))
Set the destroy function for a cluster object.
int pcmk_cpg_set_deliver_fn(pcmk_cluster_t *cluster, cpg_deliver_fn_t fn)
Set the CPG deliver callback function for a cluster object.
Wrappers for and extensions to libxml2.
unsigned long long crm_peer_seq
int pcmk_cpg_set_confchg_fn(pcmk_cluster_t *cluster, cpg_confchg_fn_t fn)
Set the CPG config change callback function for a cluster object.
Deprecated Pacemaker cluster API.
Not allowed to join, but don't send a nack message.
pcmk_cluster_layer
Types of cluster layer.
GHashTable * crm_peer_cache
enum pcmk_cluster_layer pcmk_get_cluster_layer(void)
Get and validate the local cluster layer.