From 4674ee0e6276e879b8278aa561a69ac60de0dc12 Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Thu, 10 Jun 2021 11:04:05 +0000 Subject: split enum into its own file --- configd/src/apps/sentinel/cc-result.h | 9 +++++++++ configd/src/apps/sentinel/connectivity.h | 2 +- configd/src/apps/sentinel/outward-check.h | 3 +-- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 configd/src/apps/sentinel/cc-result.h (limited to 'configd/src') diff --git a/configd/src/apps/sentinel/cc-result.h b/configd/src/apps/sentinel/cc-result.h new file mode 100644 index 00000000000..3468cf4324a --- /dev/null +++ b/configd/src/apps/sentinel/cc-result.h @@ -0,0 +1,9 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#pragma once + +namespace config::sentinel { + +enum class CcResult { UNKNOWN, CONN_FAIL, UNREACHABLE_UP, INDIRECT_PING_FAIL, INDIRECT_PING_UNAVAIL, ALL_OK }; + +} diff --git a/configd/src/apps/sentinel/connectivity.h b/configd/src/apps/sentinel/connectivity.h index 47b773d3477..a1e454a255a 100644 --- a/configd/src/apps/sentinel/connectivity.h +++ b/configd/src/apps/sentinel/connectivity.h @@ -3,7 +3,7 @@ #pragma once #include "rpcserver.h" -#include "outward-check.h" +#include "cc-result.h" #include #include #include diff --git a/configd/src/apps/sentinel/outward-check.h b/configd/src/apps/sentinel/outward-check.h index ab11eb74a71..0ae71c1b892 100644 --- a/configd/src/apps/sentinel/outward-check.h +++ b/configd/src/apps/sentinel/outward-check.h @@ -2,6 +2,7 @@ #pragma once +#include "cc-result.h" #include #include #include @@ -29,8 +30,6 @@ struct OutwardCheckContext { ~OutwardCheckContext(); }; -enum class CcResult { UNKNOWN, CONN_FAIL, UNREACHABLE_UP, INDIRECT_PING_FAIL, INDIRECT_PING_UNAVAIL, ALL_OK }; - class OutwardCheck : public FRT_IRequestWait { private: CcResult _result = CcResult::UNKNOWN; -- cgit v1.2.3