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" |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 7 | #include "xyz/openbmc_project/Control/FanPwm/server.hpp" |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 8 | #include <sdbusplus/server.hpp> |
| 9 | |
Brad Bishop | d9f06ab | 2017-01-17 14:53:30 -0500 | [diff] [blame] | 10 | template <typename... T> |
| 11 | using ServerObject = typename sdbusplus::server::object::object<T...>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 12 | |
| 13 | using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value; |
| 14 | using ValueObject = ServerObject<ValueInterface>; |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 15 | using WarningInterface = |
| 16 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning; |
| 17 | using WarningObject = ServerObject<WarningInterface>; |
| 18 | using CriticalInterface = |
| 19 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical; |
| 20 | using CriticalObject = ServerObject<CriticalInterface>; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 21 | using FanSpeedInterface = |
| 22 | sdbusplus::xyz::openbmc_project::Control::server::FanSpeed; |
| 23 | using FanSpeedObject = ServerObject<FanSpeedInterface>; |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 24 | using FanPwmInterface = |
| 25 | sdbusplus::xyz::openbmc_project::Control::server::FanPwm; |
| 26 | using FanPwmObject = ServerObject<FanPwmInterface>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 27 | |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 28 | enum class InterfaceType |
| 29 | { |
| 30 | VALUE, |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 31 | WARN, |
| 32 | CRIT, |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 33 | FAN_SPEED, |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 34 | FAN_PWM, |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 35 | }; |
| 36 | |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 37 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |