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 | |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 15 | /** |
| 16 | * @brief Helper function to create service actions in the PEL |
| 17 | * |
| 18 | * @param[in] jsonCallouts - The array of JSON callouts, or an empty object. |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 19 | * @param[in] dataIface - The DataInterface object |
Jayanth Othayoth | 3ef7b60 | 2021-11-09 06:40:38 -0600 | [diff] [blame] | 20 | * @param[in] plid - the PLID |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 21 | */ |
| 22 | void createServiceActions(const nlohmann::json& jsonCallouts, |
Deepa Karthikeyan | ff35be3 | 2024-10-15 09:10:49 -0500 | [diff] [blame^] | 23 | const DataInterfaceBase& dataIface, uint32_t plid); |
Jayanth Othayoth | da9b583 | 2021-11-05 04:19:43 -0500 | [diff] [blame] | 24 | } // namespace phal |
| 25 | } // namespace pels |
| 26 | } // namespace openpower |