diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 13:39:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 13:39:28 +0000 |
commit | 924f5ea83e48277e014ebf0d19a27187cb93e2f7 (patch) | |
tree | 75920a275bba045f6d108204562c218a9a26ea15 /include/crm/crm_compat.h | |
parent | Adding upstream version 2.1.7. (diff) | |
download | pacemaker-924f5ea83e48277e014ebf0d19a27187cb93e2f7.tar.xz pacemaker-924f5ea83e48277e014ebf0d19a27187cb93e2f7.zip |
Adding upstream version 2.1.8~rc1.upstream/2.1.8_rc1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/crm/crm_compat.h')
-rw-r--r-- | include/crm/crm_compat.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/include/crm/crm_compat.h b/include/crm/crm_compat.h index bfe1098..a5f2b6e 100644 --- a/include/crm/crm_compat.h +++ b/include/crm/crm_compat.h @@ -1,5 +1,5 @@ /* - * Copyright 2004-2023 the Pacemaker project contributors + * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * @@ -14,6 +14,7 @@ #include <glib.h> #include <crm/common/actions.h> +#include <crm/common/scores.h> #ifdef __cplusplus extern "C" { @@ -34,6 +35,33 @@ extern "C" { //! \deprecated This defined constant will be removed in a future release #define MAX_IPC_DELAY 120 +// NOTE: sbd (as of at least 1.5.2) uses this +//! \deprecated Use PCMK_SCORE_INFINITY instead +#define CRM_SCORE_INFINITY PCMK_SCORE_INFINITY + +/* INFINITY might be defined elsewhere (such as math.h), so undefine it first. + * This, of course, complicates any attempt to use the other definition in any + * code that includes this header. + */ +//! \deprecated Use PCMK_SCORE_INFINITY instead +#undef INFINITY +#define INFINITY PCMK_SCORE_INFINITY + +//! \deprecated Use PCMK_VALUE_INFINITY instead +#define CRM_INFINITY_S PCMK_VALUE_INFINITY + +//! \deprecated Use PCMK_VALUE_MINUS_INFINITY instead +#define CRM_MINUS_INFINITY_S PCMK_VALUE_MINUS_INFINITY + +//! \deprecated Use PCMK_VALUE_PLUS_INFINITY instead +#define CRM_PLUS_INFINITY_S PCMK_VALUE_PLUS_INFINITY + +//! \deprecated Use PCMK_VALUE_INFINITY instead +#define INFINITY_S "INFINITY" + +//! \deprecated Use PCMK_VALUE_MINUS_INFINITY instead +#define MINUS_INFINITY_S "-INFINITY" + //! \deprecated Use PCMK_ACTION_STONITH instead #define CRM_OP_FENCE PCMK_ACTION_STONITH @@ -154,6 +182,9 @@ extern "C" { //! \deprecated Use PCMK_ACTION_STOPPED instead #define RSC_STOPPED PCMK_ACTION_STOPPED +//! \deprecated Do not use +#define CRM_OP_LOCAL_SHUTDOWN "start_shutdown" + //!@{ //! \deprecated This macro will be removed in a future release @@ -168,6 +199,7 @@ extern "C" { // This ends the doxygen deprecation comment //!@} +// NOTE: sbd (as of at least 1.5.2) uses this //! \deprecated Use GList * instead typedef GList *GListPtr; |