pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
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
pcmk__cluster
Definition:
cluster.h:30
pcmk_cluster_layer_corosync
Corosync Cluster Engine.
Definition:
cluster.h:75
cluster_type_e
cluster_type_e
Definition:
compat.h:39
name_for_cluster_type
const char * name_for_cluster_type(enum cluster_type_e type)
Definition:
cluster.c:450
type
enum pcmk_ipc_server type
Definition:
cpg.c:51
pcmk_cluster_invalid
Definition:
compat.h:43
pcmk_cluster_unknown
Definition:
compat.h:41
get_cluster_type
enum cluster_type_e get_cluster_type(void)
Definition:
cluster.c:465
crm_cluster_connect
gboolean crm_cluster_connect(pcmk_cluster_t *cluster)
Definition:
cluster.c:435
crm_peer_init
void crm_peer_init(void)
Definition:
membership.c:1492
pcmk_cluster_layer_invalid
Invalid cluster layer.
Definition:
cluster.h:74
cluster.h
pcmk_cluster_layer_unknown
Unknown cluster layer.
Definition:
cluster.h:73
pcmk_cluster_corosync
Definition:
compat.h:46
Generated on Wed Jan 8 2025 16:55:39 for pacemaker by
1.8.14