diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-25 15:05:55 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-25 15:05:55 -0700 |
commit | c75f2c69083eca691dc36d5d8bdafca74b1819bb (patch) | |
tree | 4002299d3a65da35b602b8555cf002766447cf79 /core | |
parent | dad844f3e038bafc891181ee4e264b87ac02bc4f (diff) | |
parent | 5b4dbc2e55ab8577c53a49844b5250039e6ea98f (diff) | |
download | gps-c75f2c69083eca691dc36d5d8bdafca74b1819bb.tar.gz |
Merge "Combo Provider 2.0"
Diffstat (limited to 'core')
-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 fdfc537..3af79b2 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) @@ -524,7 +530,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 066695c..4655332 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: @@ -209,7 +210,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 |