blob: 535d301de2688f648d5419059ed24e3528e8c063 [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"
Brad Bishop8e068d92016-12-23 23:41:22 -05007#include <sdbusplus/server.hpp>
8
Brad Bishopd9f06ab2017-01-17 14:53:30 -05009template <typename... T>
10using ServerObject = typename sdbusplus::server::object::object<T...>;
Brad Bishop8e068d92016-12-23 23:41:22 -050011
12using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value;
13using ValueObject = ServerObject<ValueInterface>;
Brad Bishopcad57db2017-01-06 14:55:16 -050014using WarningInterface =
15 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning;
16using WarningObject = ServerObject<WarningInterface>;
17using CriticalInterface =
18 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical;
19using CriticalObject = ServerObject<CriticalInterface>;
Matthew Barthbf7b7b12017-03-07 15:46:59 -060020using FanSpeedInterface =
21 sdbusplus::xyz::openbmc_project::Control::server::FanSpeed;
22using FanSpeedObject = ServerObject<FanSpeedInterface>;
Brad Bishop8e068d92016-12-23 23:41:22 -050023
Brad Bishop075f7a22017-01-06 09:45:08 -050024enum class InterfaceType
25{
26 VALUE,
Brad Bishopcad57db2017-01-06 14:55:16 -050027 WARN,
28 CRIT,
Matthew Barthbf7b7b12017-03-07 15:46:59 -060029 FAN_SPEED,
Brad Bishop075f7a22017-01-06 09:45:08 -050030};
31
Brad Bishop8e068d92016-12-23 23:41:22 -050032// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4