From 61fedb45674644dfc549aaaffa70fbee4a7bd4e0 Mon Sep 17 00:00:00 2001 From: Kevin Tang Date: Wed, 24 Jul 2013 13:15:12 -0700 Subject: removed ulp dependency. ULP will no longer be loaded and init'ed from loc eng HAL. GPS HAL will look for ULP once it completes init and waits for a msg back once it hears from ULP. This is done with introduction of UlpProxy. Default proxy is a no op proxy. Change-Id: If0be0b5744f9de20f12c2f0b9704dea66aa454c0 (cherry picked from commit 2eb4ddcae94283df6c6be450c4c070ffd8ff9cd7) --- core/ContextBase.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'core/ContextBase.h') diff --git a/core/ContextBase.h b/core/ContextBase.h index 6ad9cad..fc60db4 100644 --- a/core/ContextBase.h +++ b/core/ContextBase.h @@ -33,26 +33,33 @@ #include #include #include +#include namespace loc_core { class LocAdapterBase; class ContextBase { - static const char* mIzatLibName; - static void* mIzatLibHandle; + static IzatProxyBase* getIzatProxy(const char* libName); + LocApiBase* createLocApi(LOC_API_ADAPTER_EVENT_MASK_T excludedMask); protected: + const IzatProxyBase* mIzatProxy; const MsgTask* mMsgTask; LocApiBase* mLocApi; public: ContextBase(const MsgTask* msgTask, - LOC_API_ADAPTER_EVENT_MASK_T exMask); - inline virtual ~ContextBase() { delete mLocApi; } + LOC_API_ADAPTER_EVENT_MASK_T exMask, + const char* libName); + inline virtual ~ContextBase() { delete mLocApi; delete mIzatProxy; } - static void* getIzatLibHandle(); inline const MsgTask* getMsgTask() { return mMsgTask; } inline LocApiBase* getLocApi() { return mLocApi; } + inline bool hasAgpsExt() { return mIzatProxy->hasAgpsExt(); } + inline void requestUlp(LocAdapterBase* adapter, + unsigned long capabilities) { + mIzatProxy->requestUlp(adapter, capabilities); + } }; } // namespace loc_core -- cgit v1.2.3