blob: da939c25d69ea142443d63e2f83c5bbcc1ac9477 [file] [log] [blame]
Brad Bishop8e068d92016-12-23 23:41:22 -05001#pragma once
2
Brad Bishop8d893252017-01-18 10:42:41 -05003#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 Barthbf7b7b12017-03-07 15:46:59 -06006#include "xyz/openbmc_project/Control/FanSpeed/server.hpp"
Patrick Venture9331ab72018-01-29 09:48:47 -08007#include "xyz/openbmc_project/Control/FanPwm/server.hpp"
Brad Bishop8e068d92016-12-23 23:41:22 -05008#include <sdbusplus/server.hpp>
9
Brad Bishopd9f06ab2017-01-17 14:53:30 -050010template <typename... T>
11using ServerObject = typename sdbusplus::server::object::object<T...>;
Brad Bishop8e068d92016-12-23 23:41:22 -050012
13using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value;
14using ValueObject = ServerObject<ValueInterface>;
Brad Bishopcad57db2017-01-06 14:55:16 -050015using WarningInterface =
16 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning;
17using WarningObject = ServerObject<WarningInterface>;
18using CriticalInterface =
19 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical;
20using CriticalObject = ServerObject<CriticalInterface>;
Matthew Barthbf7b7b12017-03-07 15:46:59 -060021using FanSpeedInterface =
22 sdbusplus::xyz::openbmc_project::Control::server::FanSpeed;
23using FanSpeedObject = ServerObject<FanSpeedInterface>;
Patrick Venture9331ab72018-01-29 09:48:47 -080024using FanPwmInterface =
25 sdbusplus::xyz::openbmc_project::Control::server::FanPwm;
26using FanPwmObject = ServerObject<FanPwmInterface>;
Brad Bishop8e068d92016-12-23 23:41:22 -050027
Brad Bishop075f7a22017-01-06 09:45:08 -050028enum class InterfaceType
29{
30 VALUE,
Brad Bishopcad57db2017-01-06 14:55:16 -050031 WARN,
32 CRIT,
Matthew Barthbf7b7b12017-03-07 15:46:59 -060033 FAN_SPEED,
Patrick Venture9331ab72018-01-29 09:48:47 -080034 FAN_PWM,
Brad Bishop075f7a22017-01-06 09:45:08 -050035};
36
Brad Bishop8e068d92016-12-23 23:41:22 -050037// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4