Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Brad Bishop | 8d89325 | 2017-01-18 10:42:41 -0500 | [diff] [blame] | 3 | #include "xyz/openbmc_project/Sensor/Value/server.hpp" |
| 4 | #include "xyz/openbmc_project/Sensor/Threshold/Warning/server.hpp" |
| 5 | #include "xyz/openbmc_project/Sensor/Threshold/Critical/server.hpp" |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 6 | #include "xyz/openbmc_project/Control/FanSpeed/server.hpp" |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 7 | #include <sdbusplus/server.hpp> |
| 8 | |
Brad Bishop | d9f06ab | 2017-01-17 14:53:30 -0500 | [diff] [blame] | 9 | template <typename... T> |
| 10 | using ServerObject = typename sdbusplus::server::object::object<T...>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 11 | |
| 12 | using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value; |
| 13 | using ValueObject = ServerObject<ValueInterface>; |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 14 | using WarningInterface = |
| 15 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning; |
| 16 | using WarningObject = ServerObject<WarningInterface>; |
| 17 | using CriticalInterface = |
| 18 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical; |
| 19 | using CriticalObject = ServerObject<CriticalInterface>; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 20 | using FanSpeedInterface = |
| 21 | sdbusplus::xyz::openbmc_project::Control::server::FanSpeed; |
| 22 | using FanSpeedObject = ServerObject<FanSpeedInterface>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 23 | |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 24 | enum class InterfaceType |
| 25 | { |
| 26 | VALUE, |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 27 | WARN, |
| 28 | CRIT, |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 29 | FAN_SPEED, |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 30 | }; |
| 31 | |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 32 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |