pacemaker 2.1.7-2.1.7
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
common_compat.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-2023 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_PENGINE_COMMON_COMPAT__H
11# define PCMK__CRM_PENGINE_COMMON_COMPAT__H
12
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
29#define RSC_ROLE_MAX (pcmk_role_promoted + 1)
30
32#define RSC_ROLE_UNKNOWN_S role2text(pcmk_role_unknown)
33
35#define RSC_ROLE_STOPPED_S role2text(pcmk_role_stopped)
36
38#define RSC_ROLE_STARTED_S role2text(pcmk_role_started)
39
41#define RSC_ROLE_UNPROMOTED_S role2text(pcmk_role_unpromoted)
42
44#define RSC_ROLE_PROMOTED_S role2text(pcmk_role_promoted)
45
47#define RSC_ROLE_UNPROMOTED_LEGACY_S "Slave"
48
50#define RSC_ROLE_SLAVE_S RSC_ROLE_UNPROMOTED_LEGACY_S
51
53#define RSC_ROLE_PROMOTED_LEGACY_S "Master"
54
56#define RSC_ROLE_MASTER_S RSC_ROLE_PROMOTED_LEGACY_S
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif // PCMK__CRM_PENGINE_COMMON_COMPAT__H
Scheduler API.