pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
crmcluster_private.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRMCLUSTER_PRIVATE__H
11 # define PCMK__CRMCLUSTER_PRIVATE__H
12 
13 /* This header is for the sole use of libcrmcluster, so that functions can be
14  * declared with G_GNUC_INTERNAL for efficiency.
15  */
16 
17 #include <stdint.h> // uint32_t, uint64_t
18 
19 #include <glib.h> // G_GNUC_INTERNAL, gboolean
20 #include <libxml/tree.h> // xmlNode
21 
22 #include <crm/cluster.h> // cluster_type_e, crm_node_t
23 
24 G_GNUC_INTERNAL
26 
27 G_GNUC_INTERNAL
29 
30 G_GNUC_INTERNAL
31 char *pcmk__corosync_uuid(crm_node_t *peer);
32 
33 G_GNUC_INTERNAL
34 char *pcmk__corosync_name(uint64_t /*cmap_handle_t */ cmap_handle,
35  uint32_t nodeid);
36 
37 G_GNUC_INTERNAL
38 gboolean pcmk__corosync_connect(crm_cluster_t *cluster);
39 
40 G_GNUC_INTERNAL
42 
43 G_GNUC_INTERNAL
44 gboolean pcmk__cpg_send_xml(xmlNode *msg, crm_node_t *node,
45  enum crm_ais_msg_types dest);
46 
47 #endif // PCMK__CRMCLUSTER_PRIVATE__H
G_GNUC_INTERNAL gboolean pcmk__cpg_send_xml(xmlNode *msg, crm_node_t *node, enum crm_ais_msg_types dest)
Definition: cpg.c:892
crm_ais_msg_types
Definition: cluster.h:103
G_GNUC_INTERNAL char * pcmk__corosync_name(uint64_t cmap_handle, uint32_t nodeid)
Definition: corosync.c:101
G_GNUC_INTERNAL char * pcmk__corosync_uuid(crm_node_t *peer)
Definition: corosync.c:55
cluster_type_e
Definition: cluster.h:176
G_GNUC_INTERNAL enum cluster_type_e pcmk__corosync_detect(void)
Definition: corosync.c:496
G_GNUC_INTERNAL bool pcmk__corosync_has_nodelist(void)
Definition: corosync.c:730
G_GNUC_INTERNAL gboolean pcmk__corosync_connect(crm_cluster_t *cluster)
Definition: corosync.c:451
G_GNUC_INTERNAL void pcmk__corosync_disconnect(crm_cluster_t *cluster)
Definition: corosync.c:223