Marri Devender Rao | 7847960 | 2020-01-06 03:45:11 -0600 | [diff] [blame] | 1 | #pragma once
|
| 2 |
|
| 3 | #include <sdbusplus/bus.hpp>
|
| 4 | #include <string>
|
| 5 | #include <vector>
|
| 6 | namespace openpower
|
| 7 | {
|
| 8 | namespace 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 | */
|
| 19 | std::string getService(sdbusplus::bus::bus& bus, const std::string& objectPath,
|
| 20 | const std::string& interface);
|
| 21 | } // namespace util
|
| 22 | namespace pel
|
| 23 | {
|
| 24 | using 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 | */
|
| 30 | void createBootErrorPEL(const FFDCData& ffdcData);
|
| 31 |
|
| 32 | } // namespace pel
|
| 33 | } // namespace openpower
|