summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/generated.mako.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/templates/generated.mako.hpp b/src/templates/generated.mako.hpp
index a4819e2..15835bf 100644
--- a/src/templates/generated.mako.hpp
+++ b/src/templates/generated.mako.hpp
@@ -188,7 +188,12 @@ struct ConfigPropertyWatches
{
% for w in watches:
std::make_unique<PropertyWatchOfType<${w.datatype}, SDBusPlus>>(
+ % if w.callback is None:
ConfigPropertyIndicies::get()[${w.instances}]),
+ % else:
+ ConfigPropertyIndicies::get()[${w.instances}],
+ *ConfigPropertyCallbacks::get()[${w.callback}]),
+ % endif
% endfor
};
return propertyWatches;
OpenPOWER on IntegriCloud