summaryrefslogtreecommitdiffstats
path: root/scripts/writefru.mako.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/writefru.mako.cpp')
-rw-r--r--scripts/writefru.mako.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/writefru.mako.cpp b/scripts/writefru.mako.cpp
new file mode 100644
index 0000000..7573862
--- /dev/null
+++ b/scripts/writefru.mako.cpp
@@ -0,0 +1,28 @@
+// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
+#include <iostream>
+#include "frup.hpp"
+
+extern const FruMap frus = {
+% for key in fruDict.iterkeys():
+ {${key},{
+<%
+ fru = fruDict[key]
+%>
+ % for object,interfaces in fru.iteritems():
+ {"${object}",{
+ % for interface,properties in interfaces.iteritems():
+ {"${interface}",{
+ % for dbus_property,property_value in properties.iteritems():
+ {"${dbus_property}",{
+ % for name,value in property_value.iteritems():
+ {"${name}","${value}"},
+ % endfor
+ }},
+ % endfor
+ }},
+ % endfor
+ }},
+ % endfor
+ }},
+% endfor
+};
OpenPOWER on IntegriCloud