1c4831812SJayanth Othayoth #pragma once
2c4831812SJayanth Othayoth 
3c4831812SJayanth Othayoth #include <sdbusplus/bus.hpp>
4c4831812SJayanth Othayoth 
5c4831812SJayanth Othayoth #include <string>
6c4831812SJayanth Othayoth 
7c4831812SJayanth Othayoth namespace openpower
8c4831812SJayanth Othayoth {
9c4831812SJayanth Othayoth namespace util
10c4831812SJayanth Othayoth {
11c4831812SJayanth Othayoth /**
12c4831812SJayanth Othayoth  * Get D-Bus service name for the specified object and interface
13c4831812SJayanth Othayoth  *
14c4831812SJayanth Othayoth  * @param[in] bus - sdbusplus D-Bus to attach to
15c4831812SJayanth Othayoth  * @param[in] objectPath - D-Bus object path
16c4831812SJayanth Othayoth  * @param[in] interface - D-Bus interface name
17c4831812SJayanth Othayoth  *
18c4831812SJayanth Othayoth  * @return service name on success and exception on failure
19c4831812SJayanth Othayoth  */
20aaea6867SPatrick Williams std::string getService(sdbusplus::bus_t& bus, const std::string& objectPath,
21c4831812SJayanth Othayoth                        const std::string& interface);
224d5b5bfeSMarri Devender Rao 
234d5b5bfeSMarri Devender Rao /**
244d5b5bfeSMarri Devender Rao  * Returns true if host is in poweringoff state else false
254d5b5bfeSMarri Devender Rao  *
264d5b5bfeSMarri Devender Rao  * @return bool - true if host is powering off else false. if failed
274d5b5bfeSMarri Devender Rao  *  to read property false will be returned.
284d5b5bfeSMarri Devender Rao  */
294d5b5bfeSMarri Devender Rao bool isHostPoweringOff();
304d5b5bfeSMarri Devender Rao 
31*87441239SJayanth Othayoth /**
32*87441239SJayanth Othayoth  * @brief Returns the power state for chassis0
33*87441239SJayanth Othayoth  * @return The chassis power state.
34*87441239SJayanth Othayoth  */
35*87441239SJayanth Othayoth std::string getChassisPowerState();
36*87441239SJayanth Othayoth 
37c4831812SJayanth Othayoth } // namespace util
38c4831812SJayanth Othayoth } // namespace openpower
39