1 #pragma once
2 
3 #include <sdbusplus/bus.hpp>
4 
5 namespace phosphor
6 {
7 namespace fan
8 {
9 namespace util
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 
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 
34 }
35 }
36 }
37