summaryrefslogtreecommitdiffstats
path: root/bmc_state_manager.hpp
diff options
context:
space:
mode:
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