summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-25 22:19:12 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-19 16:26:48 -0400
commitf67884e44b3b0a9cb9ed109d0bc754df6d00b032 (patch)
tree38b0f4940024fddff84d5f9e113b1a33809b53d1 /src/main.cpp
parent0df00be00999bc3285b8b0a401b48e42fb862250 (diff)
downloadphosphor-dbus-monitor-f67884e44b3b0a9cb9ed109d0bc754df6d00b032.tar.gz
phosphor-dbus-monitor-f67884e44b3b0a9cb9ed109d0bc754df6d00b032.zip
Start watches at application startup
Change-Id: Id4157b9f40c80c5bb7d54d10f74ba7ecdeb199e5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 885d843..00d7200 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -23,6 +23,11 @@ int main(void)
phosphor::dbus::monitoring::Monitor monitor(bus);
+ for (auto& watch : phosphor::dbus::monitoring::ConfigPropertyWatches::get())
+ {
+ watch->start();
+ }
+
// Keep application running
while (true)
{
OpenPOWER on IntegriCloud