Brandon Wyman | 5914f65 | 2017-03-16 18:17:07 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace fan |
| 8 | { |
Matt Spinler | 5cfdf94 | 2017-04-10 14:25:47 -0500 | [diff] [blame] | 9 | namespace util |
Brandon Wyman | 5914f65 | 2017-03-16 18:17:07 -0500 | [diff] [blame] | 10 | { |
| 11 | |
| 12 | /** |
| 13 | * @brief Get the inventory service name from the mapper object |
| 14 | * |
| 15 | * @return The inventory manager service name |
| 16 | */ |
| 17 | std::string getInvService(sdbusplus::bus::bus& bus); |
| 18 | |
Matt Spinler | 5cfdf94 | 2017-04-10 14:25:47 -0500 | [diff] [blame] | 19 | |
| 20 | /** |
| 21 | * @brief Get the service name from the mapper for the |
| 22 | * interface and path passed in. |
| 23 | * |
| 24 | * @param[in] path - the dbus path name |
| 25 | * @param[in] interface - the dbus interface name |
| 26 | * @param[in] bus - the dbus object |
| 27 | * |
| 28 | * @return The service name |
| 29 | */ |
| 30 | std::string getService(const std::string& path, |
| 31 | const std::string& interface, |
| 32 | sdbusplus::bus::bus& bus); |
| 33 | |
Brandon Wyman | 5914f65 | 2017-03-16 18:17:07 -0500 | [diff] [blame] | 34 | } |
| 35 | } |
| 36 | } |