blob: 911aa14a3a2fb5c836439b519bcff3f791ba6897 [file] [log] [blame]
Brad Bishop8e068d92016-12-23 23:41:22 -05001#pragma once
2
3#include <xyz/openbmc_project/Sensor/Value/server.hpp>
Brad Bishopcad57db2017-01-06 14:55:16 -05004#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
8template <typename T>
9using ServerObject = typename sdbusplus::server::object::object<T>;
10
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