1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace trusted_component 7 { 8 // clang-format off 9 10 enum class TrustedComponentType{ 11 Invalid, 12 Discrete, 13 Integrated, 14 }; 15 16 NLOHMANN_JSON_SERIALIZE_ENUM(TrustedComponentType, { 17 {TrustedComponentType::Invalid, "Invalid"}, 18 {TrustedComponentType::Discrete, "Discrete"}, 19 {TrustedComponentType::Integrated, "Integrated"}, 20 }); 21 22 } 23 // clang-format on 24