summaryrefslogtreecommitdiff
path: root/core/LocApiBase.h
diff options
context:
space:
mode:
authorNilesh Gharde <quic_ngharde@quicinc.com>2022-03-11 03:46:00 +0530
committerSaurabh Srivastava <quic_ssrivast@quicinc.com>2022-07-20 12:05:57 +0530
commitcf4eac65570a43c797a00abb68779f4757426499 (patch)
tree786eb8a9cba7c325c44a52706dbe0919282b85d4 /core/LocApiBase.h
parentb721d6e6b88937ab6cdd8486de677a6c91cf4888 (diff)
Enable protected dynamic interface control
Changes to Enable protected dynamic interface control. Added support to 1. Get the engine lock state. 2. Handle engine lock state event. 3. Store all the sessions when the engine is locked. 4. Restore all the sessions when the engine unlock event is received. Change-Id: I70e591a6dca2231fb762ef199d0d34f852198116 CRs-fixed: 3130222
Diffstat (limited to 'core/LocApiBase.h')
-rw-r--r--core/LocApiBase.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/LocApiBase.h b/core/LocApiBase.h
index cbe5f9f..6f1b04f 100644
--- a/core/LocApiBase.h
+++ b/core/LocApiBase.h
@@ -137,6 +137,7 @@ protected:
bool isInSession();
const LOC_API_ADAPTER_EVENT_MASK_T mExcludedMask;
bool isMaster();
+ EngineLockState mEngineLockState;
public:
inline void sendMsg(const LocMsg* msg) const {
@@ -203,6 +204,7 @@ public:
void sendNfwNotification(GnssNfwNotification& notification);
void reportGnssConfig(uint32_t sessionId, const GnssConfig& gnssConfig);
void reportLatencyInfo(GnssLatencyInfo& gnssLatencyInfo);
+ void reportEngineLockStatus(EngineLockState engineLockState);
void reportQwesCapabilities
(
const std::unordered_map<LocationQwesFeatureType, bool> &featureMap
@@ -345,6 +347,14 @@ public:
LocApiResponse* adapterResponse=nullptr);
virtual void getConstellationMultiBandConfig(uint32_t sessionId,
LocApiResponse* adapterResponse=nullptr);
+
+ inline EngineLockState getEngineLockState() {
+ return mEngineLockState;
+ }
+
+ inline void setEngineLockState(EngineLockState engineLockState) {
+ mEngineLockState = engineLockState;
+ }
};
class ElapsedRealtimeEstimator {