summaryrefslogtreecommitdiffstats
path: root/scripts/writefru.mako.cpp
blob: 6180e134479ed265c3f73d9e9a0c219aceffeeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
#include <iostream>
#include "frup.hpp"

extern const FruMap frus = {
% for key in fruDict.keys():
   {${key},{
<%
    fru = fruDict[key]
%>
    % for object,interfaces in fru.items():
         {"${object}",{
         % for interface,properties in interfaces.items():
             {"${interface}",{
            % for dbus_property,property_value in properties.items():
                 {"${dbus_property}",{
                % for name,value in property_value.items():
                     {"${name}","${value}"},
                % endfor
                 }},
            % endfor
             }},
         % endfor
        }},
    % endfor
   }},
% endfor
};
OpenPOWER on IntegriCloud