diff options
-rw-r--r-- | core/LocAdapterBase.cpp | 5 | ||||
-rw-r--r-- | core/LocAdapterBase.h | 1 | ||||
-rw-r--r-- | core/LocApiBase.cpp | 8 | ||||
-rw-r--r-- | core/LocApiBase.h | 3 |
4 files changed, 15 insertions, 2 deletions
diff --git a/core/LocAdapterBase.cpp b/core/LocAdapterBase.cpp index 6a3f969..899ad84 100644 --- a/core/LocAdapterBase.cpp +++ b/core/LocAdapterBase.cpp @@ -146,4 +146,9 @@ DEFAULT_IMPL(false) void LocAdapterBase:: reportGnssMeasurementData(GnssData &gnssMeasurementData) DEFAULT_IMPL() + +bool LocAdapterBase:: + reportWwanZppFix(GpsLocation &zppLoc) +DEFAULT_IMPL(false) + } // namespace loc_core diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h index af25138..0b1d3d9 100644 --- a/core/LocAdapterBase.h +++ b/core/LocAdapterBase.h @@ -124,6 +124,7 @@ public: inline virtual bool isInSession() { return false; } ContextBase* getContext() const { return mContext; } virtual void reportGnssMeasurementData(GnssData &gnssMeasurementData); + virtual bool reportWwanZppFix(GpsLocation &zppLoc); }; } // namespace loc_core diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index d52f27b..8262ef1 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -254,6 +254,12 @@ void LocApiBase::reportPosition(UlpLocation &location, ); } +void LocApiBase::reportWwanZppFix(GpsLocation &zppLoc) +{ + // loop through adapters, and deliver to the first handling adapter. + TO_1ST_HANDLING_LOCADAPTERS(mLocAdapters[i]->reportWwanZppFix(zppLoc)); +} + void LocApiBase::reportSv(GnssSvStatus &svStatus, GpsLocationExtended &locationExtended, void* svExt) @@ -528,7 +534,7 @@ enum loc_api_adapter_err LocApiBase:: DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS) enum loc_api_adapter_err LocApiBase:: - getWwanZppFix(GpsLocation& zppLoc) + getWwanZppFix() DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS) enum loc_api_adapter_err LocApiBase:: diff --git a/core/LocApiBase.h b/core/LocApiBase.h index 8849b1f..067d7e2 100644 --- a/core/LocApiBase.h +++ b/core/LocApiBase.h @@ -136,6 +136,7 @@ public: void saveSupportedMsgList(uint64_t supportedMsgList); void reportGnssMeasurementData(GnssData &gnssMeasurementData); void saveSupportedFeatureList(uint8_t *featureList); + void reportWwanZppFix(GpsLocation &zppLoc); // downward calls // All below functions are to be defined by adapter specific modules: @@ -211,7 +212,7 @@ public: virtual enum loc_api_adapter_err setLPPeProtocol(unsigned long lppeCP, unsigned long lppeUP); virtual enum loc_api_adapter_err - getWwanZppFix(GpsLocation & zppLoc); + getWwanZppFix(); virtual enum loc_api_adapter_err getBestAvailableZppFix(GpsLocation & zppLoc); virtual enum loc_api_adapter_err |