blob: 2da6e450555b6eca1daa39d0d5d16f3ba8d3afc5 [file] [log] [blame]
Jayanth Othayoth4d779b22021-06-03 05:45:13 -05001#pragma once
2
3#include <libekb.H>
4
5#include <cstdarg>
6#include <nlohmann/json.hpp>
7
8namespace openpower
9{
10namespace pels
11{
12namespace phal
13{
14
15using json = nlohmann::json;
16using FFDCData = std::vector<std::pair<std::string, std::string>>;
17
18/**
19 * @brief Used to convert processed SBE FFDC FAPI format packets into
20 * PEL expected format.
21 *
22 * @param[out] pelJSONFmtCalloutDataList used to store collected callout
23 * data into pel expected format
24 * @param[out] ffdcUserData used to store additional ffdc user data to
25 * provided by the SBE FFDC packet.
26 *
27 * @return NULL
28 *
29 */
30void convertFAPItoPELformat(FFDC& ffdc, json& pelJSONFmtCalloutDataList,
31 FFDCData& ffdcUserData);
32} // namespace phal
33} // namespace pels
34} // namespace openpower