1*c4831812SJayanth Othayoth #pragma once 2*c4831812SJayanth Othayoth 3*c4831812SJayanth Othayoth #include <sdbusplus/bus.hpp> 4*c4831812SJayanth Othayoth 5*c4831812SJayanth Othayoth #include <string> 6*c4831812SJayanth Othayoth 7*c4831812SJayanth Othayoth namespace openpower 8*c4831812SJayanth Othayoth { 9*c4831812SJayanth Othayoth namespace util 10*c4831812SJayanth Othayoth { 11*c4831812SJayanth Othayoth /** 12*c4831812SJayanth Othayoth * Get D-Bus service name for the specified object and interface 13*c4831812SJayanth Othayoth * 14*c4831812SJayanth Othayoth * @param[in] bus - sdbusplus D-Bus to attach to 15*c4831812SJayanth Othayoth * @param[in] objectPath - D-Bus object path 16*c4831812SJayanth Othayoth * @param[in] interface - D-Bus interface name 17*c4831812SJayanth Othayoth * 18*c4831812SJayanth Othayoth * @return service name on success and exception on failure 19*c4831812SJayanth Othayoth */ 20*c4831812SJayanth Othayoth std::string getService(sdbusplus::bus::bus& bus, const std::string& objectPath, 21*c4831812SJayanth Othayoth const std::string& interface); 22*c4831812SJayanth Othayoth } // namespace util 23*c4831812SJayanth Othayoth } // namespace openpower 24