blob: b37987d73d437b4c7b14a2574ff49815ac0e53cf [file] [log] [blame]
Brandon Wyman5914f652017-03-16 18:17:07 -05001#pragma once
2
3#include <sdbusplus/bus.hpp>
4
5namespace phosphor
6{
7namespace fan
8{
Matt Spinler5cfdf942017-04-10 14:25:47 -05009namespace util
Brandon Wyman5914f652017-03-16 18:17:07 -050010{
11
12/**
13 * @brief Get the inventory service name from the mapper object
14 *
15 * @return The inventory manager service name
16 */
17std::string getInvService(sdbusplus::bus::bus& bus);
18
Matt Spinler5cfdf942017-04-10 14:25:47 -050019
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 */
30std::string getService(const std::string& path,
31 const std::string& interface,
32 sdbusplus::bus::bus& bus);
33
Brandon Wyman5914f652017-03-16 18:17:07 -050034}
35}
36}