diff options
author | Kevin Tang <zhikait@codeaurora.org> | 2013-07-24 13:15:12 -0700 |
---|---|---|
committer | Sridhar Nelloru <nellos@codeaurora.org> | 2013-08-09 11:44:34 -0700 |
commit | 61fedb45674644dfc549aaaffa70fbee4a7bd4e0 (patch) | |
tree | 405e4c4e83887c1f318cfd78c586ddc71ba0fceb /core/ContextBase.h | |
parent | 3535edcfb0def6f298eea21f51fc91103004c984 (diff) | |
download | gps-61fedb45674644dfc549aaaffa70fbee4a7bd4e0.tar.gz |
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)
Diffstat (limited to 'core/ContextBase.h')
-rw-r--r-- | core/ContextBase.h | 17 |
1 files changed, 12 insertions, 5 deletions
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 <ctype.h> #include <MsgTask.h> #include <LocApiBase.h> +#include <IzatProxyBase.h> 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 |