blob: b80b64214e1a5f10ffdef4144d2a66f58014cc55 [file] [log] [blame]
Marri Devender Rao78479602020-01-06 03:45:11 -06001#pragma once
2
3#include <sdbusplus/bus.hpp>
4#include <string>
5#include <vector>
6namespace openpower
7{
8namespace util
9{
10/**
11 * Get D-Bus service name for the specified object and interface
12 *
13 * @param[in] bus - sdbusplus D-Bus to attach to
14 * @param[in] objectPath - D-Bus object path
15 * @param[in] interface - D-Bus interface name
16 *
17 * @return service name on success and exception on failure
18 */
19std::string getService(sdbusplus::bus::bus& bus, const std::string& objectPath,
20 const std::string& interface);
21} // namespace util
22namespace pel
23{
24using FFDCData = std::vector<std::pair<std::string, std::string>>;
25/**
26 * Create boot error PEL
27 *
28 * @param[in] ffdcData - failure data to append to PEL
29 */
30void createBootErrorPEL(const FFDCData& ffdcData);
31
32} // namespace pel
33} // namespace openpower