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