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[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 */ 30 void convertFAPItoPELformat(FFDC& ffdc, json& pelJSONFmtCalloutDataList, 31 FFDCData& ffdcUserData); 32 } // namespace phal 33 } // namespace pels 34 } // namespace openpower 35