From bdd9cb7121ca36f29a199e35f8837ec73c7a4e20 Mon Sep 17 00:00:00 2001 From: "Josh D. King" Date: Mon, 19 Dec 2016 11:13:43 -0600 Subject: 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 --- bmc_state_manager.hpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 bmc_state_manager.hpp (limited to 'bmc_state_manager.hpp') 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 +#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 -- cgit v1.2.1