From a2e85b1df70aa4df5288fc39e7f66c13fb834520 Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Wed, 26 Feb 2014 16:24:10 -0800 Subject: [PATCH] Add sendMsg to LocApiBase for utility It is useful for LocApiBase derived classes to have access to sending messages to the message handling thread without going through an adapter Change-Id: If60c473bfb504aab68ec661ecdfb012ef410c9cf CRs-fixed: 615958 --- core/LocApiBase.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/LocApiBase.h b/core/LocApiBase.h index 1d96313e..1603e6b4 100644 --- a/core/LocApiBase.h +++ b/core/LocApiBase.h @@ -70,7 +70,6 @@ class LocApiBase { friend struct LocOpenMsg; friend class ContextBase; const MsgTask* mMsgTask; - LocAdapterBase* mLocAdapters[MAX_ADAPTERS]; protected: @@ -87,6 +86,10 @@ protected: const LOC_API_ADAPTER_EVENT_MASK_T mExcludedMask; public: + inline void sendMsg(const LocMsg* msg) const { + mMsgTask->sendMsg(msg); + } + void addAdapter(LocAdapterBase* adapter); void removeAdapter(LocAdapterBase* adapter);