1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRMCLUSTER_PRIVATE__H
11 # define PCMK__CRMCLUSTER_PRIVATE__H
12
13
14
15
16
17 #include <stdint.h>
18
19 #include <glib.h>
20 #include <libxml/tree.h>
21
22 #if SUPPORT_COROSYNC
23 #include <corosync/cpg.h>
24 #endif
25
26 #include <crm/cluster.h>
27
28 G_GNUC_INTERNAL
29 bool pcmk__corosync_is_active(void);
30
31 G_GNUC_INTERNAL
32 bool pcmk__corosync_has_nodelist(void);
33
34 G_GNUC_INTERNAL
35 char *pcmk__corosync_uuid(const crm_node_t *peer);
36
37 G_GNUC_INTERNAL
38 char *pcmk__corosync_name(uint64_t cmap_handle,
39 uint32_t nodeid);
40
41 G_GNUC_INTERNAL
42 int pcmk__corosync_connect(pcmk_cluster_t *cluster);
43
44 G_GNUC_INTERNAL
45 void pcmk__corosync_disconnect(pcmk_cluster_t *cluster);
46
47 G_GNUC_INTERNAL
48 bool pcmk__corosync_is_peer_active(const crm_node_t *node);
49
50 G_GNUC_INTERNAL
51 int pcmk__cpg_connect(pcmk_cluster_t *cluster);
52
53 G_GNUC_INTERNAL
54 void pcmk__cpg_disconnect(pcmk_cluster_t *cluster);
55
56 G_GNUC_INTERNAL
57 uint32_t pcmk__cpg_local_nodeid(cpg_handle_t handle);
58
59 G_GNUC_INTERNAL
60 bool pcmk__cpg_send_xml(const xmlNode *msg, const crm_node_t *node,
61 enum crm_ais_msg_types dest);
62
63 #endif