blob: 8d8652c7acfa8125f36e87ce9fd6e70ef1399d04 [file] [log] [blame]
#pragma once
#include "data_interface.hpp"
#include <nlohmann/json.hpp>
#include <xyz/openbmc_project/HardwareIsolation/Entry/server.hpp>
namespace openpower
{
namespace pels
{
namespace phal
{
using EntrySeverity =
sdbusplus::xyz::openbmc_project::HardwareIsolation::server::Entry::Type;
/**
* @brief Helper function to create service actions in the PEL
*
* @param[in] jsonCallouts - The array of JSON callouts, or an empty object.
* @param[in] path - The BMC error log object path
* @param[in] dataIface - The DataInterface object
* @param[in] plid - the PLID
*/
void createServiceActions(const nlohmann::json& jsonCallouts,
const std::string& path,
const DataInterfaceBase& dataIface,
const uint32_t plid);
} // namespace phal
} // namespace pels
} // namespace openpower