Initial phosphor-state-manager commit
Still a lot of work to come with this one but this is the
initial makefile and building of a basic application
that provides dbus introspection and properties of
the xyz/openbmc_project/State/Host.interface.yaml
Change-Id: I406fafa6a50721b2f28ab6df03ef98a940e2db6e
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/host_state_manager.hpp b/host_state_manager.hpp
new file mode 100644
index 0000000..4a755db
--- /dev/null
+++ b/host_state_manager.hpp
@@ -0,0 +1,40 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+#include "xyz/openbmc_project/State/Host/server.hpp"
+
+namespace phosphor
+{
+namespace state
+{
+namespace manager
+{
+
+/** @class Host
+ * @brief OpenBMC host state management implementation.
+ * @details A concrete implementation for xyz.openbmc_project.State.Host
+ * DBus API.
+ */
+class Host : public sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::State::server::Host>
+{
+ public:
+ /** @brief Constructs Host State Manager
+ *
+ * @param[in] bus - The Dbus bus object
+ * @param[in] busName - The Dbus name to own
+ * @param[in] objPath - The Dbus object path
+ */
+ Host(sdbusplus::bus::bus& bus,
+ const char* busName,
+ const char* objPath) :
+ sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::State::server::Host>(
+ bus, objPath) {};
+
+ private:
+};
+
+} // namespace manager
+} // namespace state
+} // namespace phosphor