diff options
Diffstat (limited to 'scripts/extra-properties.mako.cpp')
-rw-r--r-- | scripts/extra-properties.mako.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/extra-properties.mako.cpp b/scripts/extra-properties.mako.cpp new file mode 100644 index 0000000..03c730a --- /dev/null +++ b/scripts/extra-properties.mako.cpp @@ -0,0 +1,24 @@ +## This file is a template. The comment below is emitted +## into the rendered file; feel free to edit this file. +// WARNING: Generated source. Do not edit! + +#include "types.hpp" + +using namespace ipmi::vpd; + +extern const std::map<Path, InterfaceMap> extras = { +% for path in dict.iterkeys(): +<% + interfaces = dict[path] +%>\ + {"${path}",{ + % for interface,properties in interfaces.iteritems(): + {"${interface}",{ + % for property,value in properties.iteritems(): + {"${property}", ${value}}, + % endfor + }}, + % endfor + }}, +% endfor +}; |