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 = |
Willy Tu | 6ddbf69 | 2023-09-05 10:54:16 -0700 | [diff] [blame] | 16 | sdbusplus::server::xyz::openbmc_project::hardware_isolation::Entry::Type; |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 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 |
Jayanth Othayoth | 3ef7b60 | 2021-11-09 06:40:38 -0600 | [diff] [blame] | 24 | * @param[in] plid - the PLID |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 25 | */ |
| 26 | void createServiceActions(const nlohmann::json& jsonCallouts, |
| 27 | const std::string& path, |
Jayanth Othayoth | 3ef7b60 | 2021-11-09 06:40:38 -0600 | [diff] [blame] | 28 | const DataInterfaceBase& dataIface, |
| 29 | const uint32_t plid); |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 30 | } // namespace phal |
| 31 | } // namespace pels |
| 32 | } // namespace openpower |