Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/bus.hpp> |
| 4 | #include <sdbusplus/server/object.hpp> |
| 5 | #include <xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp> |
| 6 | namespace phosphor |
| 7 | { |
| 8 | namespace ipmi |
| 9 | { |
| 10 | |
| 11 | namespace Base = sdbusplus::xyz::openbmc_project::Ipmi::Internal::server; |
| 12 | |
| 13 | /** @class SoftPowerOff |
| 14 | * @brief Responsible for coordinating Host SoftPowerOff operation |
| 15 | */ |
| 16 | class SoftPowerOff : public sdbusplus::server::object::object< |
| 17 | Base::SoftPowerOff> |
| 18 | { |
| 19 | public: |
| 20 | /** @brief Constructs SoftPowerOff object. |
| 21 | * |
| 22 | * @param[in] bus - system dbus handler |
| 23 | * @param[in] objPath - The Dbus path that hosts SoftPowerOff function |
| 24 | */ |
| 25 | SoftPowerOff(sdbusplus::bus::bus& bus, |
| 26 | const char* objPath) : |
| 27 | sdbusplus::server::object::object<Base::SoftPowerOff>(bus, objPath) |
| 28 | { |
| 29 | // Nothing to do here |
| 30 | } |
| 31 | }; |
| 32 | } // namespace ipmi |
| 33 | } // namespace phosphor |