1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace coolant_connector 7 { 8 // clang-format off 9 10 enum class CoolantConnectorType{ 11 Invalid, 12 Pair, 13 Supply, 14 Return, 15 Inline, 16 Closed, 17 }; 18 19 NLOHMANN_JSON_SERIALIZE_ENUM(CoolantConnectorType, { 20 {CoolantConnectorType::Invalid, "Invalid"}, 21 {CoolantConnectorType::Pair, "Pair"}, 22 {CoolantConnectorType::Supply, "Supply"}, 23 {CoolantConnectorType::Return, "Return"}, 24 {CoolantConnectorType::Inline, "Inline"}, 25 {CoolantConnectorType::Closed, "Closed"}, 26 }); 27 28 } 29 // clang-format on 30