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