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/LocAdapterBase.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core/LocAdapterBase.h') 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 +#include #include 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, -- cgit v1.2.3