diff options
Diffstat (limited to 'utility.hpp')
-rw-r--r-- | utility.hpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/utility.hpp b/utility.hpp index d45fa02..b37987d 100644 --- a/utility.hpp +++ b/utility.hpp @@ -6,7 +6,7 @@ namespace phosphor { namespace fan { -namespace presence +namespace util { /** @@ -16,6 +16,21 @@ namespace presence */ std::string getInvService(sdbusplus::bus::bus& bus); + +/** + * @brief Get the service name from the mapper for the + * interface and path passed in. + * + * @param[in] path - the dbus path name + * @param[in] interface - the dbus interface name + * @param[in] bus - the dbus object + * + * @return The service name + */ +std::string getService(const std::string& path, + const std::string& interface, + sdbusplus::bus::bus& bus); + } } } |