summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2018-01-24 16:10:09 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2018-01-30 08:33:47 +0000
commit31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb (patch)
tree117f92d6d3ecdeb40f6a1d94f393616d5bdef1af /types.hpp
parentb0adbcdd5a854702c8eab02a63ff08936103540e (diff)
downloadphosphor-host-ipmid-31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb.tar.gz
phosphor-host-ipmid-31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb.zip
sensor: Populate entity id, instance and sensor name callback
Change-Id: Ie7bf403ae15d9b1a70216aab0c57362c3d4240e7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/types.hpp b/types.hpp
index 2580063..260deb5 100644
--- a/types.hpp
+++ b/types.hpp
@@ -139,6 +139,8 @@ inline Mutability operator&(Mutability lhs, Mutability rhs)
struct Info
{
+ EntityType entityType;
+ EntityInst instance;
Type sensorType;
InstancePath sensorPath;
DbusInterface sensorInterface;
@@ -153,6 +155,7 @@ struct Info
std::function<uint8_t(SetSensorReadingReq&, const Info&)> updateFunc;
std::function<GetSensorResponse(const Info&)> getFunc;
Mutability mutability;
+ std::function<SensorName(const Info&)> sensorNameFunc;
DbusInterfaceMap propertyInterfaces;
};
OpenPOWER on IntegriCloud