pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
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
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
40  // NOTE: sbd (as of at least 1.5.2) uses this value
42 
44 
45  // NOTE: sbd (as of at least 1.5.2) uses this value
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
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
Corosync Cluster Engine.
Definition: cluster.h:75
cluster_type_e
Definition: compat.h:39
const char * name_for_cluster_type(enum cluster_type_e type)
Definition: cluster.c:450
enum pcmk_ipc_server type
Definition: cpg.c:51
enum cluster_type_e get_cluster_type(void)
Definition: cluster.c:465
gboolean crm_cluster_connect(pcmk_cluster_t *cluster)
Definition: cluster.c:435
void crm_peer_init(void)
Definition: membership.c:1492
Invalid cluster layer.
Definition: cluster.h:74
Unknown cluster layer.
Definition: cluster.h:73