From fccdc39fdf8f97ef4bf3de3b8ddcae28fef4bc8e Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 22 May 2017 21:11:09 -0400 Subject: Link watches to callbacks Callbacks must ultimately be triggered when a property is updated by a watch. Add that support. Signed-off-by: Brad Bishop Change-Id: I20130a11c19ddcf2c4ae45800f2068b31950bcd6 --- src/templates/generated.mako.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/templates') 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>( + % if w.callback is None: ConfigPropertyIndicies::get()[${w.instances}]), + % else: + ConfigPropertyIndicies::get()[${w.instances}], + *ConfigPropertyCallbacks::get()[${w.callback}]), + % endif % endfor }; return propertyWatches; -- cgit v1.2.1