From 747f69507a5f6beecfdf82791e2afe06c7f7b879 Mon Sep 17 00:00:00 2001 From: Jiafei Wen Date: Wed, 23 Oct 2013 11:28:51 -0700 Subject: Add LocApiProxyBase to context This is so that the izat adapters can get access to LocApiProxy through the context. Change-Id: I15a477d159375740047cd7386f8c8c5163fdaf87 --- core/LocAdapterBase.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/LocAdapterBase.h') diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h index f279f9f..be31de6 100644 --- a/core/LocAdapterBase.h +++ b/core/LocAdapterBase.h @@ -44,12 +44,10 @@ protected: inline LocAdapterBase(const MsgTask* msgTask) : mEvtMask(0), mContext(NULL), mLocApi(NULL), mMsgTask(msgTask) {} - +public: + inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); } LocAdapterBase(const LOC_API_ADAPTER_EVENT_MASK_T mask, ContextBase* context); - inline virtual ~LocAdapterBase() { mLocApi->removeAdapter(this); } - -public: inline LOC_API_ADAPTER_EVENT_MASK_T checkMask(LOC_API_ADAPTER_EVENT_MASK_T mask) const { return mEvtMask & mask; -- cgit v1.2.3