summaryrefslogtreecommitdiffstats
path: root/softoff/softoff.hpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-01-24 14:58:25 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-03-22 11:15:13 +0530
commit506aa0f33362eee06a8f7a2572519d4053f06e41 (patch)
tree58c595aa0290fcf699c1f5c815f052dede2fe99d /softoff/softoff.hpp
parent50234ad43e643ff7c01567b1000505d35bd035b5 (diff)
downloadphosphor-host-ipmid-506aa0f33362eee06a8f7a2572519d4053f06e41.tar.gz
phosphor-host-ipmid-506aa0f33362eee06a8f7a2572519d4053f06e41.zip
Add initial code for IPMI SoftPowerOff functionality
This commit puts a skeleton layout for the IPMI Soft Power Off functionality. Change-Id: I7c3ededc9d4038e172d7f6230270ecfe397330e9 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'softoff/softoff.hpp')
-rw-r--r--softoff/softoff.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/softoff/softoff.hpp b/softoff/softoff.hpp
new file mode 100644
index 0000000..93dfb26
--- /dev/null
+++ b/softoff/softoff.hpp
@@ -0,0 +1,33 @@
+#pragma once
+
+#include <sdbusplus/bus.hpp>
+#include <sdbusplus/server/object.hpp>
+#include <xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp>
+namespace phosphor
+{
+namespace ipmi
+{
+
+namespace Base = sdbusplus::xyz::openbmc_project::Ipmi::Internal::server;
+
+/** @class SoftPowerOff
+ * @brief Responsible for coordinating Host SoftPowerOff operation
+ */
+class SoftPowerOff : public sdbusplus::server::object::object<
+ Base::SoftPowerOff>
+{
+ public:
+ /** @brief Constructs SoftPowerOff object.
+ *
+ * @param[in] bus - system dbus handler
+ * @param[in] objPath - The Dbus path that hosts SoftPowerOff function
+ */
+ SoftPowerOff(sdbusplus::bus::bus& bus,
+ const char* objPath) :
+ sdbusplus::server::object::object<Base::SoftPowerOff>(bus, objPath)
+ {
+ // Nothing to do here
+ }
+};
+} // namespace ipmi
+} // namespace phosphor
OpenPOWER on IntegriCloud