Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3686931
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/include/crm/common/roles.h b/include/crm/common/roles.h
index ba7de50fb6..5c105455db 100644
--- a/include/crm/common/roles.h
+++ b/include/crm/common/roles.h
@@ -1,66 +1,63 @@
/*
* Copyright 2004-2024 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* This source code is licensed under the GNU Lesser General Public License
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
*/
#ifndef PCMK__CRM_COMMON_ROLES__H
#define PCMK__CRM_COMMON_ROLES__H
#ifdef __cplusplus
extern "C" {
#endif
/*!
* \file
* \brief Scheduler API for resource roles
* \ingroup core
*/
// String equivalents of enum rsc_role_e
#define PCMK_ROLE_STOPPED "Stopped"
#define PCMK_ROLE_STARTED "Started"
#define PCMK_ROLE_UNPROMOTED "Unpromoted"
#define PCMK_ROLE_PROMOTED "Promoted"
/*!
* Possible roles that a resource can be in
* (order matters; values can be compared with less than and greater than)
*/
enum rsc_role_e {
pcmk_role_unknown = 0, //!< Resource role is unknown
pcmk_role_stopped = 1, //!< Stopped
pcmk_role_started = 2, //!< Started
pcmk_role_unpromoted = 3, //!< Unpromoted
pcmk_role_promoted = 4, //!< Promoted
#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
- //! \deprecated Use pcmk_role_started instead
- RSC_ROLE_STARTED = pcmk_role_started,
-
//! \deprecated Use pcmk_role_unpromoted instead
RSC_ROLE_UNPROMOTED = pcmk_role_unpromoted,
//! \deprecated Use pcmk_role_unpromoted instead
RSC_ROLE_SLAVE = pcmk_role_unpromoted,
//! \deprecated Use pcmk_role_promoted instead
RSC_ROLE_PROMOTED = pcmk_role_promoted,
//! \deprecated Use pcmk_role_promoted instead
RSC_ROLE_MASTER = pcmk_role_promoted,
#endif
};
const char *pcmk_role_text(enum rsc_role_e role);
enum rsc_role_e pcmk_parse_role(const char *role);
#ifdef __cplusplus
}
#endif
#endif // PCMK__CRM_COMMON_ROLES__H
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Apr 21, 6:11 PM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1665136
Default Alt Text
(2 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment