summaryrefslogtreecommitdiffstats
path: root/host-interface.hpp
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2017-03-16 15:53:20 -0500
committerAndrew Geissler <andrewg@us.ibm.com>2017-05-09 09:34:44 -0500
commitdd2c6fdc50572c90d5919d0839f1dac82388c2ed (patch)
tree63affe519f944b12b68586591ba08a6931adc076 /host-interface.hpp
parent00f0815b9f34dce75e77001fa56dbc1f44bba2ff (diff)
downloadphosphor-host-ipmid-dd2c6fdc50572c90d5919d0839f1dac82388c2ed.tar.gz
phosphor-host-ipmid-dd2c6fdc50572c90d5919d0839f1dac82388c2ed.zip
Compile new control host code
The purpose of this series of commits is to provide the ability for other services to communicate with the host. Specifically with this series, to be able to request the host power itself down or to simply check if the host is running. Change-Id: I0136467cd3f258fbed3e40e4b7269ed4d8a23e46 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'host-interface.hpp')
-rw-r--r--host-interface.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/host-interface.hpp b/host-interface.hpp
new file mode 100644
index 0000000..793a5cb
--- /dev/null
+++ b/host-interface.hpp
@@ -0,0 +1,34 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+#include <xyz/openbmc_project/Control/Host/server.hpp>
+
+namespace phosphor
+{
+namespace host
+{
+
+/** @class Host
+ * @brief OpenBMC control host interface implementation.
+ * @details A concrete implementation for xyz.openbmc_project.Control.Host
+ * DBus API.
+ */
+class Host : public sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::Control::server::Host>
+{
+ public:
+ /** @brief Constructs Host Control Interface
+ *
+ * @param[in] bus - The Dbus bus object
+ * @param[in] objPath - The Dbus object path
+ */
+ Host(sdbusplus::bus::bus& bus,
+ const char* objPath) :
+ sdbusplus::server::object::object<
+ sdbusplus::xyz::openbmc_project::Control::server::Host>(
+ bus, objPath)
+ {}
+};
+
+} // namespace host
+} // namespace phosphor
OpenPOWER on IntegriCloud