pacemaker 2.1.8-2.1.8
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
crmcluster_private.h
Go to the documentation of this file.
1/*
2 * Copyright 2020-2024 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#if SUPPORT_COROSYNC
23#include <corosync/cpg.h> // cpg_handle_t
24#endif // SUPPORT_COROSYNC
25
26#include <crm/cluster.h> // crm_node_t
27
28G_GNUC_INTERNAL
30
31G_GNUC_INTERNAL
33
34G_GNUC_INTERNAL
35char *pcmk__corosync_uuid(const crm_node_t *peer);
36
37G_GNUC_INTERNAL
38char *pcmk__corosync_name(uint64_t /*cmap_handle_t */ cmap_handle,
39 uint32_t nodeid);
40
41G_GNUC_INTERNAL
43
44G_GNUC_INTERNAL
46
47G_GNUC_INTERNAL
49
50G_GNUC_INTERNAL
52
53G_GNUC_INTERNAL
55
56G_GNUC_INTERNAL
57uint32_t pcmk__cpg_local_nodeid(cpg_handle_t handle);
58
59G_GNUC_INTERNAL
60bool pcmk__cpg_send_xml(const xmlNode *msg, const crm_node_t *node,
61 enum crm_ais_msg_types dest);
62
63#endif // PCMK__CRMCLUSTER_PRIVATE__H
crm_ais_msg_types
Definition cluster.h:197
G_GNUC_INTERNAL bool pcmk__cpg_send_xml(const xmlNode *msg, const crm_node_t *node, enum crm_ais_msg_types dest)
Definition cpg.c:1091
G_GNUC_INTERNAL char * pcmk__corosync_name(uint64_t cmap_handle, uint32_t nodeid)
Definition corosync.c:101
G_GNUC_INTERNAL void pcmk__corosync_disconnect(pcmk_cluster_t *cluster)
Definition corosync.c:223
G_GNUC_INTERNAL bool pcmk__corosync_has_nodelist(void)
Definition corosync.c:727
G_GNUC_INTERNAL int pcmk__corosync_connect(pcmk_cluster_t *cluster)
Definition corosync.c:455
G_GNUC_INTERNAL uint32_t pcmk__cpg_local_nodeid(cpg_handle_t handle)
Definition cpg.c:101
G_GNUC_INTERNAL void pcmk__cpg_disconnect(pcmk_cluster_t *cluster)
Definition cpg.c:933
G_GNUC_INTERNAL char * pcmk__corosync_uuid(const crm_node_t *peer)
Definition corosync.c:53
G_GNUC_INTERNAL int pcmk__cpg_connect(pcmk_cluster_t *cluster)
Connect to Corosync CPG.
Definition cpg.c:829
G_GNUC_INTERNAL bool pcmk__corosync_is_peer_active(const crm_node_t *node)
Definition corosync.c:528
G_GNUC_INTERNAL bool pcmk__corosync_is_active(void)
Definition corosync.c:504