summaryrefslogtreecommitdiffstats
path: root/bmc_state_manager.hpp
diff options
context:
space:
mode:
authorJosh D. King <jdking@us.ibm.com>2016-12-19 11:13:43 -0600
committerJosh D. King <jdking@us.ibm.com>2017-01-25 16:10:57 -0600
commitbdd9cb7121ca36f29a199e35f8837ec73c7a4e20 (patch)
tree7a2c4b735dcfdc234303ca719c280add9dbf03f2 /bmc_state_manager.hpp
parent6e0b50936735faac96db2f20fe84ffd0733750a9 (diff)
downloadphosphor-state-manager-bdd9cb7121ca36f29a199e35f8837ec73c7a4e20.tar.gz
phosphor-state-manager-bdd9cb7121ca36f29a199e35f8837ec73c7a4e20.zip
Add base support for BMC state management
This is the starting code needing to build the application. Still more to do, this is just the layout for the additional commits that will be done for the state management. Change-Id: Ief1dc96c84b34630e60ef40c99d4faf5b6f6e02e Signed-off-by: Josh D. King <jdking@us.ibm.com>
Diffstat (limited to 'bmc_state_manager.hpp')
-rw-r--r--bmc_state_manager.hpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/bmc_state_manager.hpp b/bmc_state_manager.hpp
new file mode 100644
index 0000000..6b1f62d
--- /dev/null
+++ b/bmc_state_manager.hpp
@@ -0,0 +1,38 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+#include "xyz/openbmc_project/State/BMC/server.hpp"
+
+namespace phosphor
+{
+namespace state
+{
+namespace manager
+{
+
+/** @class BMC
+ * @brief OpenBMC BMC state management implementation.
+ * @details A concrete implementation for xyz.openbmc_project.State.BMC
+ * DBus API.
+ */
+class BMC : public sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::State::server::BMC>
+{
+ public:
+ /** @brief Constructs BMC State Manager
+ *
+ * @param[in] bus - The Dbus bus object
+ * @param[in] busName - The Dbus name to own
+ * @param[in] objPath - The Dbus object path
+ */
+ BMC(sdbusplus::bus::bus& bus,
+ const char* objPath) :
+ sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::State::server::BMC>(
+ bus, objPath) {};
+
+};
+
+} // namespace manager
+} // namespace state
+} // namespace phosphor
OpenPOWER on IntegriCloud