summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/generated.mako.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/templates/generated.mako.hpp b/src/templates/generated.mako.hpp
index 856975f..7c6e527 100644
--- a/src/templates/generated.mako.hpp
+++ b/src/templates/generated.mako.hpp
@@ -45,6 +45,38 @@ struct ConfigPaths
return paths;
}
};
+
+struct ConfigInterfaces
+{
+ using Interfaces = std::array<std::string, ${len(interfaces)}>;
+
+ static auto& get()
+ {
+ static const Interfaces interfaces =
+ {
+% for i in interfaces:
+ "${i.name}"s,
+% endfor
+ };
+ return interfaces;
+ }
+};
+
+struct ConfigProperties
+{
+ using Properties = std::array<std::string, ${len(propertynames)}>;
+
+ static auto& get()
+ {
+ static const Properties properties =
+ {
+% for p in propertynames:
+ "${p.name}"s,
+% endfor
+ };
+ return properties;
+ }
+};
} // namespace monitoring
} // namespace dbus
} // namespace phosphor
OpenPOWER on IntegriCloud