pacemaker
3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
include
crm
cluster
compat.h
Go to the documentation of this file.
1
/*
2
* Copyright 2004-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__CRM_CLUSTER_COMPAT__H
11
#define PCMK__CRM_CLUSTER_COMPAT__H
12
13
#include <
crm/cluster.h
>
// pcmk_cluster_t, enum pcmk_cluster_layer
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
28
// NOTE: sbd (as of at least 1.5.2) uses this
30
typedef
struct
pcmk__cluster
crm_cluster_t
;
31
32
// NOTE: sbd (as of at least 1.5.2) uses this
34
gboolean
crm_cluster_connect
(
pcmk_cluster_t
*cluster);
35
36
// NOTE: sbd (as of at least 1.5.2) uses this enum
39
enum
cluster_type_e
{
40
// NOTE: sbd (as of at least 1.5.2) uses this value
41
pcmk_cluster_unknown
=
pcmk_cluster_layer_unknown
,
42
43
pcmk_cluster_invalid
=
pcmk_cluster_layer_invalid
,
44
45
// NOTE: sbd (as of at least 1.5.2) uses this value
46
pcmk_cluster_corosync
=
pcmk_cluster_layer_corosync
,
47
};
49
50
// NOTE: sbd (as of at least 1.5.2) uses this
52
const
char
*
name_for_cluster_type
(
enum
cluster_type_e
type
);
53
54
// NOTE: sbd (as of at least 1.5.2) uses this
56
enum
cluster_type_e
get_cluster_type
(
void
);
57
58
// NOTE: sbd (as of at least 1.5.2) uses this
60
void
crm_peer_init
(
void
);
61
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
// PCMK_CLUSTER_COMPAT__H
cluster.h
pcmk_cluster_layer_invalid
@ pcmk_cluster_layer_invalid
Invalid cluster layer.
Definition
cluster.h:71
pcmk_cluster_layer_corosync
@ pcmk_cluster_layer_corosync
Corosync Cluster Engine.
Definition
cluster.h:72
pcmk_cluster_layer_unknown
@ pcmk_cluster_layer_unknown
Unknown cluster layer.
Definition
cluster.h:70
crm_cluster_connect
gboolean crm_cluster_connect(pcmk_cluster_t *cluster)
Definition
cluster.c:440
get_cluster_type
enum cluster_type_e get_cluster_type(void)
Definition
cluster.c:470
name_for_cluster_type
const char * name_for_cluster_type(enum cluster_type_e type)
Definition
cluster.c:455
cluster_type_e
cluster_type_e
Definition
compat.h:39
pcmk_cluster_unknown
@ pcmk_cluster_unknown
Definition
compat.h:41
pcmk_cluster_invalid
@ pcmk_cluster_invalid
Definition
compat.h:43
pcmk_cluster_corosync
@ pcmk_cluster_corosync
Definition
compat.h:46
crm_peer_init
void crm_peer_init(void)
Definition
membership.c:1513
type
enum pcmk_ipc_server type
Definition
cpg.c:3
pcmk__cluster
Definition
cluster.h:30
Generated on Thu Aug 7 2025 12:04:47 for pacemaker by
1.12.0