diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2017-05-05 11:04:29 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-05-19 17:59:19 +0000 |
commit | dd78a1d02fd1071a0a88e72a9add51795a9d0d28 (patch) | |
tree | dd657ec3127c0364bc5536b09910576fe3cc9328 /types.hpp | |
parent | 83527efebc74c906aa6e7ed3205703db48002619 (diff) | |
download | phosphor-host-ipmid-dd78a1d02fd1071a0a88e72a9add51795a9d0d28.tar.gz phosphor-host-ipmid-dd78a1d02fd1071a0a88e72a9add51795a9d0d28.zip |
Write parser for inventory to sensor mapping yaml.
Write python-based parser for inventory-sensor.yaml.
The parser generates inventory-sensor-gen.cpp, which is contains a map
containing the inventory object path as key and the sensor related info
as the value.
Change-Id: Ib0e0f61f075b0ba777417a8032074c9b66b2eef7
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'types.hpp')
-rw-r--r-- | types.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -51,5 +51,17 @@ using InterfaceMap = std::map<DbusInterface, PropertyMap>; using Object = sdbusplus::message::object_path; using ObjectMap = std::map<Object, InterfaceMap>; +struct SelData +{ + Id sensorID; + Type sensorType; + ReadingType eventReadingType; + Offset eventOffset; +}; + +using InventoryPath = std::string; + +using InvObjectIDMap = std::map<InventoryPath, SelData>; + }//namespce sensor }//namespace ipmi |