summaryrefslogtreecommitdiffstats
path: root/bmc_state_manager.hpp
diff options
context:
space:
mode:
authorJosh D. King <jdking@us.ibm.com>2016-12-19 16:15:00 -0600
committerJosh D. King <jdking@us.ibm.com>2017-01-26 08:15:52 -0600
commit5162a7b745623bc2df6ff4ff9a2d2ba22c089341 (patch)
treefcaaf8d5dea67d5d6ff70a3fc68bc69d80f62c32 /bmc_state_manager.hpp
parent6db3822d3d2e575096606d757df22f4aeb767c91 (diff)
downloadphosphor-state-manager-5162a7b745623bc2df6ff4ff9a2d2ba22c089341.tar.gz
phosphor-state-manager-5162a7b745623bc2df6ff4ff9a2d2ba22c089341.zip
Add BMC state transition of reboot
This commit should support the transition to reboot a BMC using systemd. Later commits will handle the remaining transition monitoring for updating the current state. Change-Id: I1fb14b8775de4d2cbc522aa3405c8917291bf3cc Signed-off-by: Josh D. King <jdking@us.ibm.com>
Diffstat (limited to 'bmc_state_manager.hpp')
-rw-r--r--bmc_state_manager.hpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/bmc_state_manager.hpp b/bmc_state_manager.hpp
index be88ba8..1ddef53 100644
--- a/bmc_state_manager.hpp
+++ b/bmc_state_manager.hpp
@@ -21,6 +21,10 @@ class BMC : public sdbusplus::server::object::object<
public:
/** @brief Constructs BMC State Manager
*
+ * @note This constructor passes 'true' to the base class in order to
+ * defer dbus object registration until we can run
+ * subscribeToSystemdSignals() and set our properties
+ *
* @param[in] bus - The Dbus bus object
* @param[in] busName - The Dbus name to own
* @param[in] objPath - The Dbus object path
@@ -38,8 +42,6 @@ class BMC : public sdbusplus::server::object::object<
/** @brief Set value of BMCTransition **/
Transition requestedBMCTransition(Transition value) override;
- /** @breif Set value of CurrentBMCState **/
- BMCState currentBMCState(BMCState value) override;
private:
/**
@@ -47,10 +49,15 @@ class BMC : public sdbusplus::server::object::object<
**/
void subscribeToSystemdSignals();
+ /** @brief Execute the transition request
+ *
+ * @param[in] tranReq - Transition requested
+ */
+ void executeTransition(Transition tranReq);
+
/** @brief Persistent sdbusplus DBus bus connection. **/
sdbusplus::bus::bus& bus;
-
};
} // namespace manager
OpenPOWER on IntegriCloud