Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "data_interface.hpp" |
| 4 | |
| 5 | #include <nlohmann/json.hpp> |
| 6 | #include <xyz/openbmc_project/HardwareIsolation/Entry/server.hpp> |
| 7 | |
| 8 | namespace openpower |
| 9 | { |
| 10 | namespace pels |
| 11 | { |
| 12 | namespace phal |
| 13 | { |
| 14 | |
| 15 | using EntrySeverity = |
| 16 | sdbusplus::xyz::openbmc_project::HardwareIsolation::server::Entry::Type; |
| 17 | |
| 18 | /** |
| 19 | * @brief Helper function to create service actions in the PEL |
| 20 | * |
| 21 | * @param[in] jsonCallouts - The array of JSON callouts, or an empty object. |
| 22 | * @param[in] path - The BMC error log object path |
| 23 | * @param[in] dataIface - The DataInterface object |
| 24 | */ |
| 25 | void createServiceActions(const nlohmann::json& jsonCallouts, |
| 26 | const std::string& path, |
| 27 | const DataInterfaceBase& dataIface); |
| 28 | } // namespace phal |
| 29 | } // namespace pels |
| 30 | } // namespace openpower |