1 #pragma once 2 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" 6 #include "xyz/openbmc_project/Control/FanSpeed/server.hpp" 7 #include "xyz/openbmc_project/Control/FanPwm/server.hpp" 8 #include <sdbusplus/server.hpp> 9 10 template <typename... T> 11 using ServerObject = typename sdbusplus::server::object::object<T...>; 12 13 using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value; 14 using ValueObject = ServerObject<ValueInterface>; 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>; 21 using FanSpeedInterface = 22 sdbusplus::xyz::openbmc_project::Control::server::FanSpeed; 23 using FanSpeedObject = ServerObject<FanSpeedInterface>; 24 using FanPwmInterface = 25 sdbusplus::xyz::openbmc_project::Control::server::FanPwm; 26 using FanPwmObject = ServerObject<FanPwmInterface>; 27 28 enum class InterfaceType 29 { 30 VALUE, 31 WARN, 32 CRIT, 33 FAN_SPEED, 34 FAN_PWM, 35 }; 36 37 // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 38