blob: 8032663f9174fffd06ea675fd35d14080ddf53ce [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
15using EntrySeverity =
Willy Tu6ddbf692023-09-05 10:54:16 -070016 sdbusplus::server::xyz::openbmc_project::hardware_isolation::Entry::Type;
Jayanth Othayothda9b5832021-11-05 04:19:43 -050017
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 Othayoth3ef7b602021-11-09 06:40:38 -060024 * @param[in] plid - the PLID
Jayanth Othayothda9b5832021-11-05 04:19:43 -050025 */
26void createServiceActions(const nlohmann::json& jsonCallouts,
27 const std::string& path,
Jayanth Othayoth3ef7b602021-11-09 06:40:38 -060028 const DataInterfaceBase& dataIface,
29 const uint32_t plid);
Jayanth Othayothda9b5832021-11-05 04:19:43 -050030} // namespace phal
31} // namespace pels
32} // namespace openpower