Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 3 | #include <sdbusplus/server.hpp> |
Lakshmi Yadlapati | 47fb49a | 2023-10-19 14:47:08 -0500 | [diff] [blame] | 4 | #include <xyz/openbmc_project/Common/Priority/server.hpp> |
Patrick Venture | 043d323 | 2018-08-31 10:10:53 -0700 | [diff] [blame] | 5 | #include <xyz/openbmc_project/Control/FanPwm/server.hpp> |
| 6 | #include <xyz/openbmc_project/Control/FanSpeed/server.hpp> |
George Liu | c9d6161 | 2022-10-12 14:31:39 +0800 | [diff] [blame] | 7 | #include <xyz/openbmc_project/Sensor/Accuracy/server.hpp> |
Patrick Venture | 043d323 | 2018-08-31 10:10:53 -0700 | [diff] [blame] | 8 | #include <xyz/openbmc_project/Sensor/Threshold/Critical/server.hpp> |
| 9 | #include <xyz/openbmc_project/Sensor/Threshold/Warning/server.hpp> |
| 10 | #include <xyz/openbmc_project/Sensor/Value/server.hpp> |
| 11 | #include <xyz/openbmc_project/State/Decorator/OperationalStatus/server.hpp> |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 12 | |
Brad Bishop | d9f06ab | 2017-01-17 14:53:30 -0500 | [diff] [blame] | 13 | template <typename... T> |
Patrick Williams | ad6043f | 2022-07-22 19:26:56 -0500 | [diff] [blame] | 14 | using ServerObject = typename sdbusplus::server::object_t<T...>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 15 | |
| 16 | using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value; |
| 17 | using ValueObject = ServerObject<ValueInterface>; |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 18 | using WarningInterface = |
| 19 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning; |
| 20 | using WarningObject = ServerObject<WarningInterface>; |
| 21 | using CriticalInterface = |
| 22 | sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical; |
| 23 | using CriticalObject = ServerObject<CriticalInterface>; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 24 | using FanSpeedInterface = |
| 25 | sdbusplus::xyz::openbmc_project::Control::server::FanSpeed; |
| 26 | using FanSpeedObject = ServerObject<FanSpeedInterface>; |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 27 | using FanPwmInterface = |
| 28 | sdbusplus::xyz::openbmc_project::Control::server::FanPwm; |
| 29 | using FanPwmObject = ServerObject<FanPwmInterface>; |
Patrick Venture | 043d323 | 2018-08-31 10:10:53 -0700 | [diff] [blame] | 30 | using StatusInterface = sdbusplus::xyz::openbmc_project::State::Decorator:: |
| 31 | server::OperationalStatus; |
Matthew Barth | 3581938 | 2018-04-18 14:53:01 -0500 | [diff] [blame] | 32 | using StatusObject = ServerObject<StatusInterface>; |
Lakshmi Yadlapati | 47fb49a | 2023-10-19 14:47:08 -0500 | [diff] [blame] | 33 | using PriorityInterface = |
| 34 | sdbusplus::xyz::openbmc_project::Common::server::Priority; |
| 35 | using PriorityObject = ServerObject<PriorityInterface>; |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 36 | |
Matt Spinler | e32ce16 | 2021-05-12 08:55:12 -0500 | [diff] [blame] | 37 | using SensorValueType = double; |
James Feist | ee73f5b | 2018-08-01 16:31:42 -0700 | [diff] [blame] | 38 | |
George Liu | c9d6161 | 2022-10-12 14:31:39 +0800 | [diff] [blame] | 39 | using AccuracyInterface = |
| 40 | sdbusplus::xyz::openbmc_project::Sensor::server::Accuracy; |
| 41 | using AccuracyObject = ServerObject<AccuracyInterface>; |
| 42 | |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 43 | enum class InterfaceType |
| 44 | { |
| 45 | VALUE, |
Brad Bishop | cad57db | 2017-01-06 14:55:16 -0500 | [diff] [blame] | 46 | WARN, |
| 47 | CRIT, |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 48 | FAN_SPEED, |
Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 49 | FAN_PWM, |
Matthew Barth | 3581938 | 2018-04-18 14:53:01 -0500 | [diff] [blame] | 50 | STATUS, |
George Liu | c9d6161 | 2022-10-12 14:31:39 +0800 | [diff] [blame] | 51 | ACCURACY, |
Lakshmi Yadlapati | 47fb49a | 2023-10-19 14:47:08 -0500 | [diff] [blame] | 52 | PRIORITY, |
Brad Bishop | 075f7a2 | 2017-01-06 09:45:08 -0500 | [diff] [blame] | 53 | }; |
| 54 | |
Brad Bishop | 8e068d9 | 2016-12-23 23:41:22 -0500 | [diff] [blame] | 55 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |