1 #pragma once 2 3 #include <sdbusplus/bus.hpp> 4 5 /** @brief Determine if a side switch is needed 6 * 7 * @param[in] bus - The Dbus bus object 8 * @return True if side switch needed, false otherwise 9 */ 10 bool sideSwitchNeeded(sdbusplus::bus_t& bus); 11 12 /** @brief Power off the system 13 * 14 * @param[in] bus - The Dbus bus object 15 * @return True if chassis off success, false otherwise 16 */ 17 bool powerOffSystem(sdbusplus::bus_t& bus); 18 19 /** @brief Configure BMC to auto power on the host after reboot 20 * 21 * @param[in] bus - The Dbus bus object 22 * @return True if policy set correctly, false otherwise 23 */ 24 bool setAutoPowerRestart(sdbusplus::bus_t& bus); 25 26 /** @brief Reboot the BMC 27 * 28 * @param[in] bus - The Dbus bus object 29 * @return True if reboot request had no error, false otherwise 30 */ 31 bool rebootTheBmc(sdbusplus::bus_t& bus); 32