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