From 80c70610a0ea96cf609387638f9f3f9bee0c581d Mon Sep 17 00:00:00 2001 From: Marri Devender Rao Date: Thu, 12 Apr 2018 09:22:55 -0500 Subject: Modify parser and add mako scripts for watch on object path Added support for watch and callback on 'interface added' signal for the specified object paths. Added mako scripts for events to auto create callback and watch objects for the specified object path groups. Clients specify object paths to watch and callbacks to invoke in the config.yaml file Change-Id: I3fa2ea1520649120b927c0cb83a16e5cace2f24e Signed-off-by: Marri Devender Rao --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 68cef3e..3b75e3b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,6 +54,15 @@ int main(void) { watch->callback(Context::START); } + for (auto& watch : ConfigPathWatches::get()) + { + watch->start(); + } + + for (auto& watch : ConfigPathWatches::get()) + { + watch->callback(Context::START); + } Loop::run(); -- cgit v1.2.1