Code Review
/
ric-app
/
hw-go.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Example to read configuration
[ric-app/hw-go.git]
/
hwApp.go
diff --git
a/hwApp.go
b/hwApp.go
index
1704dda
..
90aed67
100755
(executable)
--- a/
hwApp.go
+++ b/
hwApp.go
@@
-51,7
+51,11
@@
func (e *HWApp) Run() {
// register callback after xapp ready
xapp.SetReadyCB(e.xAppStartCB, true)
// 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)
}
}