Add example to demonstrate ready callback.
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I757dc98d281533bbbb4fe2543c0820067c5ec170
xapp.Logger.Info("Config file changed")
}
+
+func (e *HWApp) xAppStartCB(d interface{}) {
+ xapp.Logger.Info("xApp ready call back received")
+}
+
func (e *HWApp) Consume(rp *xapp.RMRParams) (err error) {
return
}
// set config change listener
xapp.AddConfigChangeListener(e.ConfigChangeHandler)
+ // register callback after xapp ready
+ xapp.SetReadyCB(e.xAppStartCB, true)
+
xapp.RunWithParams(e, false)
}