blob: d5b0ca4d5eb0d83d7fde870740c9803dac244385 [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"
Brad Bishop8e068d92016-12-23 23:41:22 -05006#include <sdbusplus/server.hpp>
7
Brad Bishopd9f06ab2017-01-17 14:53:30 -05008template <typename... T>
9using ServerObject = typename sdbusplus::server::object::object<T...>;
Brad Bishop8e068d92016-12-23 23:41:22 -050010
11using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value;
12using ValueObject = ServerObject<ValueInterface>;
Brad Bishopcad57db2017-01-06 14:55:16 -050013using WarningInterface =
14 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Warning;
15using WarningObject = ServerObject<WarningInterface>;
16using CriticalInterface =
17 sdbusplus::xyz::openbmc_project::Sensor::Threshold::server::Critical;
18using CriticalObject = ServerObject<CriticalInterface>;
Brad Bishop8e068d92016-12-23 23:41:22 -050019
Brad Bishop075f7a22017-01-06 09:45:08 -050020enum class InterfaceType
21{
22 VALUE,
Brad Bishopcad57db2017-01-06 14:55:16 -050023 WARN,
24 CRIT,
Brad Bishop075f7a22017-01-06 09:45:08 -050025};
26
Brad Bishop8e068d92016-12-23 23:41:22 -050027// vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4