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/LocAdapterBase.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/LocAdapterBase.h')
-rw-r--r-- | core/LocAdapterBase.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h index aca70f5..f279f9f 100644 --- a/core/LocAdapterBase.h +++ b/core/LocAdapterBase.h @@ -30,6 +30,7 @@ #define LOC_API_ADAPTER_BASE_H #include <gps_extended.h> +#include <UlpProxyBase.h> #include <ContextBase.h> namespace loc_core { @@ -41,6 +42,9 @@ protected: LocApiBase* mLocApi; const MsgTask* mMsgTask; + inline LocAdapterBase(const MsgTask* msgTask) : + mEvtMask(0), mContext(NULL), mLocApi(NULL), mMsgTask(msgTask) {} + LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask, ContextBase* context); inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); } @@ -65,8 +69,12 @@ public: // This will be overridden by the individual adapters // if necessary. + inline virtual void setUlpProxy(UlpProxyBase* ulp) {} inline virtual void handleEngineUpEvent() {} - virtual void handleEngineDownEvent() ; + virtual void handleEngineDownEvent(); + inline virtual void setPositionModeInt(LocPosMode& posMode) {} + virtual void startFixInt() {} + virtual void stopFixInt() {} virtual void reportPosition(UlpLocation &location, GpsLocationExtended &locationExtended, void* locationExt, |