summaryrefslogtreecommitdiffstats
path: root/include/crm/common/health_internal.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:53:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:53:20 +0000
commite5a812082ae033afb1eed82c0f2df3d0f6bdc93f (patch)
treea6716c9275b4b413f6c9194798b34b91affb3cc7 /include/crm/common/health_internal.h
parentInitial commit. (diff)
downloadpacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.tar.xz
pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.zip
Adding upstream version 2.1.6.upstream/2.1.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/crm/common/health_internal.h')
-rw-r--r--include/crm/common/health_internal.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/crm/common/health_internal.h b/include/crm/common/health_internal.h
new file mode 100644
index 0000000..277a4c9
--- /dev/null
+++ b/include/crm/common/health_internal.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 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_HEALTH_INTERNAL__H
+#define PCMK__CRM_COMMON_HEALTH_INTERNAL__H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*!
+ * \internal
+ * \brief Possible node health strategies
+ *
+ * \note It would be nice to use this in pe_working_set_t but that will have to
+ * wait for an API backward compatibility break.
+ */
+enum pcmk__health_strategy {
+ pcmk__health_strategy_none,
+ pcmk__health_strategy_no_red,
+ pcmk__health_strategy_only_green,
+ pcmk__health_strategy_progressive,
+ pcmk__health_strategy_custom,
+};
+
+bool pcmk__validate_health_strategy(const char *value);
+
+enum pcmk__health_strategy pcmk__parse_health_strategy(const char *value);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // PCMK__CRM_COMMON_HEALTH_INTERNAL__H