diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2018-01-24 16:10:09 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-01-30 08:33:47 +0000 |
commit | 31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb (patch) | |
tree | 117f92d6d3ecdeb40f6a1d94f393616d5bdef1af /types.hpp | |
parent | b0adbcdd5a854702c8eab02a63ff08936103540e (diff) | |
download | phosphor-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.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; }; |