xref: /openbmc/phosphor-host-ipmid/scripts/inventorysensor.cpp.mako (revision c84add583a4989f2c1f4b950a0a204111afd3723)
1## This file is a template.  The comment below is emitted
2## into the rendered file; feel free to edit this file.
3
4// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
5
6#include <ipmid/types.hpp>
7using namespace ipmi::sensor;
8
9extern const InvObjectIDMap __attribute__((init_priority(101))) invSensors = {
10% for key in sensorDict.keys():
11   % if key:
12{"${key}",
13    {
14<%
15       objectPath = sensorDict[key]
16       sensorID = objectPath["sensorID"]
17       sensorType = objectPath["sensorType"]
18       eventReadingType = objectPath["eventReadingType"]
19       offset = objectPath["offset"]
20%>
21        ${sensorID},${sensorType},${eventReadingType},${offset}
22    }
23},
24   % endif
25% endfor
26};
27