diff options
author | Baili Feng <bailif@codeaurora.org> | 2017-05-31 16:22:16 +0800 |
---|---|---|
committer | Baili Feng <bailif@codeaurora.org> | 2017-06-06 09:45:37 +0800 |
commit | 1f3ac891ae0aee10a2415da7539d58e239cacf92 (patch) | |
tree | 18e55eda78caf3d62382b170e51991d3f76fa24b /location/LocationAPIClientBase.h | |
parent | 876db406414d985d41d582f1ec4ad97b7c5a8313 (diff) | |
download | gps-1f3ac891ae0aee10a2415da7539d58e239cacf92.tar.gz |
Make updateConfig functional before gnss is enabled
locAPIGnssUpdateConfig and locAPIEnable/Disable
will use different request queues
Change-Id: I8c5456ebc4c221ff0e536ad488259b21e5607e03
CRs-Fixed: 2054316
Diffstat (limited to 'location/LocationAPIClientBase.h')
-rw-r--r-- | location/LocationAPIClientBase.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/location/LocationAPIClientBase.h b/location/LocationAPIClientBase.h index 832dca8..0805d7c 100644 --- a/location/LocationAPIClientBase.h +++ b/location/LocationAPIClientBase.h @@ -50,6 +50,7 @@ enum REQUEST_TYPE { REQUEST_NIRESPONSE, REQUEST_DELETEAIDINGDATA, REQUEST_CONTROL, + REQUEST_CONFIG, REQUEST_MAX, }; @@ -446,7 +447,6 @@ private: }; LocationAPIRequest* getRequestBySession(uint32_t session); - LocationAPIRequest* getGeofencesRequest(); private: pthread_mutex_t mMutex; @@ -462,6 +462,7 @@ private: RequestQueue* mRequestQueues[REQUEST_MAX]; std::map<uint32_t, SessionEntity> mSessionMap; int32_t mBatchSize; + bool mEnabled; GnssConfig mConfig; }; |