summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-05-05 11:04:29 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-05-19 17:59:19 +0000
commitdd78a1d02fd1071a0a88e72a9add51795a9d0d28 (patch)
treedd657ec3127c0364bc5536b09910576fe3cc9328 /types.hpp
parent83527efebc74c906aa6e7ed3205703db48002619 (diff)
downloadphosphor-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.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/types.hpp b/types.hpp
index 555dce3..4ad3306 100644
--- a/types.hpp
+++ b/types.hpp
@@ -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
OpenPOWER on IntegriCloud