10 #ifndef PCMK__CRM_CLUSTER__H 11 #define PCMK__CRM_CLUSTER__H 16 #include <corosync/cpg.h> 49 #endif // SUPPORT_COROSYNC 66 #endif // SUPPORT_COROSYNC 85 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 89 #endif // PCMK__CRM_CLUSTER__H int pcmk_cluster_disconnect(pcmk_cluster_t *cluster)
Disconnect from the cluster layer.
pcmk_cluster_t * pcmk_cluster_new(void)
Allocate a new pcmk_cluster_t object.
Implementation of pcmk__cluster_private_t.
const char * pcmk_cluster_layer_text(enum pcmk_cluster_layer layer)
Get a log-friendly string equivalent of a cluster layer.
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.
void(* destroy)(gpointer)
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.
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.
pcmk_cluster_layer
Types of cluster layer.
pcmk__cluster_private_t * priv
enum pcmk_cluster_layer pcmk_get_cluster_layer(void)
Get and validate the local cluster layer.