Example to read configuration
Example to demonstrate reading configuration.
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: Ife41214be107c76f31d61addc2f91fd1678796e4
diff --git a/hwApp.go b/hwApp.go
index 1704dda..90aed67 100755
--- a/hwApp.go
+++ b/hwApp.go
@@ -51,7 +51,11 @@
// register callback after xapp ready
xapp.SetReadyCB(e.xAppStartCB, true)
- xapp.RunWithParams(e, false)
+ // reading configuration from config file
+ waitForSdl := xapp.Config.GetBool("db.waitForSdl")
+
+ // start xapp
+ xapp.RunWithParams(e, waitForSdl)
}