summaryrefslogtreecommitdiff
path: root/core/SystemStatusOsObserver.h
diff options
context:
space:
mode:
authorHarikrishnan Hariharan <hahariha@codeaurora.org>2017-09-04 11:55:13 +0530
committerHarikrishnan Hariharan <hahariha@codeaurora.org>2017-09-08 22:38:33 +0530
commitf0d7fe810f46662ae3d876b7b47540c24211be2b (patch)
treee21515ab6108cc63f59318bd9386c4d5ab32f6d4 /core/SystemStatusOsObserver.h
parent099f9405b1e87bc79dd63b276c14b2fd27df3f4e (diff)
downloadgps-f0d7fe810f46662ae3d876b7b47540c24211be2b.tar.gz
Xtra client interfacing with LocNetIface in LE
Interfacing LocnetIface with Xtra client for wwan/supl call setup and teardown. - XtraSystemStatusObserver must listen to connect/teardown wwan call requests from xtra-daemon on the HAL side socket. This request is then processed by libloc_net_iface module on LE. - Caching the connect and disconnect backhaul requests received before framework action request object is obtained. Change-Id: I7cb6751efc64b27726b5d28be9a3df7b1bfb3d76 CRs-Fixed: 2092215
Diffstat (limited to 'core/SystemStatusOsObserver.h')
-rw-r--r--core/SystemStatusOsObserver.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/SystemStatusOsObserver.h b/core/SystemStatusOsObserver.h
index 985e5c9..6892f22 100644
--- a/core/SystemStatusOsObserver.h
+++ b/core/SystemStatusOsObserver.h
@@ -85,6 +85,12 @@ public:
// To set the framework action request object
inline void setFrameworkActionReqObj(IFrameworkActionReq* frameworkActionReqObj) {
mContext.mFrameworkActionReqObj = frameworkActionReqObj;
+#ifdef USE_GLIB
+ if (mBackHaulConnectReqCount > 0) {
+ connectBackhaul();
+ mBackHaulConnectReqCount = 0;
+ }
+#endif
}
// IDataItemSubscription Overrides
@@ -103,6 +109,10 @@ public:
// IFrameworkActionReq Overrides
virtual void turnOn(DataItemId dit, int timeOut = 0);
virtual void turnOff(DataItemId dit);
+#ifdef USE_GLIB
+ virtual bool connectBackhaul();
+ virtual bool disconnectBackhaul();
+#endif
private:
SystemContext mContext;
@@ -117,6 +127,10 @@ private:
ObserverReqCache mReqDataCache;
void cacheObserverRequest(ObserverReqCache& reqCache,
const list<DataItemId>& l, IDataItemObserver* client);
+#ifdef USE_GLIB
+ // Cache the framework action request for connect/disconnect
+ int mBackHaulConnectReqCount;
+#endif
// Helpers
void sendFirstResponse(const list<DataItemId>& l, IDataItemObserver* to);