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