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
This commit is contained in:
Dante Russo 2014-02-26 16:24:10 -08:00
parent d77629b0a0
commit a2e85b1df7

View file

@ -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);