Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <string> |
| 5 | namespace open_power |
| 6 | { |
| 7 | namespace occ |
| 8 | { |
| 9 | /** |
| 10 | * @brief Gets the D-Bus Service name for the input D-Bus path |
| 11 | * |
| 12 | * @param[in] bus - Bus handler |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 13 | * @param[in] path - Object Path |
Vishwanatha Subbanna | 18dc128 | 2017-08-29 14:09:35 +0530 | [diff] [blame^] | 14 | * @param[in] intf - Interface |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 15 | * |
| 16 | * @return Service name |
| 17 | * @error InternalFailure exception thrown |
| 18 | */ |
| 19 | std::string getService(sdbusplus::bus::bus& bus, |
Vishwanatha Subbanna | 18dc128 | 2017-08-29 14:09:35 +0530 | [diff] [blame^] | 20 | const std::string& path, |
| 21 | const std::string& intf); |
Vishwanatha Subbanna | 30e329a | 2017-07-24 23:13:14 +0530 | [diff] [blame] | 22 | } // namespace occ |
| 23 | } // namespace open_power |