blob: 0dcd1ffebe97f0be696fb2801d91684a32c8de01 [file] [log] [blame]
Jayanth Othayothda9b5832021-11-05 04:19:43 -05001#pragma once
2
3#include "data_interface.hpp"
4
5#include <nlohmann/json.hpp>
6#include <xyz/openbmc_project/HardwareIsolation/Entry/server.hpp>
7
8namespace openpower
9{
10namespace pels
11{
12namespace phal
13{
14
Jayanth Othayothda9b5832021-11-05 04:19:43 -050015/**
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 Othayothda9b5832021-11-05 04:19:43 -050019 * @param[in] dataIface - The DataInterface object
Jayanth Othayoth3ef7b602021-11-09 06:40:38 -060020 * @param[in] plid - the PLID
Jayanth Othayothda9b5832021-11-05 04:19:43 -050021 */
22void createServiceActions(const nlohmann::json& jsonCallouts,
Deepa Karthikeyanff35be32024-10-15 09:10:49 -050023 const DataInterfaceBase& dataIface, uint32_t plid);
Jayanth Othayothda9b5832021-11-05 04:19:43 -050024} // namespace phal
25} // namespace pels
26} // namespace openpower