aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Stefani <luca.stefani.ge1@gmail.com>2016-09-02 10:54:33 +0200
committerRygebin <kaankulahli@gmail.com>2017-02-02 20:17:35 +0000
commitb09015d45f83fac7210ff7998a3ed775afabccd9 (patch)
treeb3917eaaccda7600b2441bdb1c7c37cbc0063be2
parent6fad37346a4af67bf6ec1fd851b1e9c72e671d35 (diff)
seed: gps: Hack to build with N
AOSP now has a conflicting GnssSvStatus struct. Rename the one in the GPS HAL to QcomSvStatus. Change-Id: Ie79c5471423ce0d39e34f1dd0a3e71d9edb016b0
-rw-r--r--gps/core/LocAdapterBase.cpp2
-rw-r--r--gps/core/LocAdapterBase.h2
-rw-r--r--gps/core/LocApiBase.cpp2
-rw-r--r--gps/core/LocApiBase.h2
-rw-r--r--gps/core/UlpProxyBase.h2
-rw-r--r--gps/core/gps_extended_c.h4
-rw-r--r--gps/loc_api/libloc_api_50001/LocEngAdapter.cpp4
-rw-r--r--gps/loc_api/libloc_api_50001/LocEngAdapter.h4
-rw-r--r--gps/loc_api/libloc_api_50001/loc_eng.cpp2
-rw-r--r--gps/loc_api/libloc_api_50001/loc_eng_msg.h4
-rw-r--r--gps/loc_api/libloc_api_50001/loc_eng_nmea.cpp2
-rw-r--r--gps/loc_api/libloc_api_50001/loc_eng_nmea.h2
-rw-r--r--gps/loc_api/loc_api_v02/LocApiV02.cpp4
13 files changed, 18 insertions, 18 deletions
diff --git a/gps/core/LocAdapterBase.cpp b/gps/core/LocAdapterBase.cpp
index 3b8cf8b..fbd077a 100644
--- a/gps/core/LocAdapterBase.cpp
+++ b/gps/core/LocAdapterBase.cpp
@@ -80,7 +80,7 @@ void LocAdapterBase::
}
void LocAdapterBase::
- reportSv(QcomGnssSvStatus &svStatus,
+ reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt)
DEFAULT_IMPL()
diff --git a/gps/core/LocAdapterBase.h b/gps/core/LocAdapterBase.h
index 58ea4f7..d3adfe9 100644
--- a/gps/core/LocAdapterBase.h
+++ b/gps/core/LocAdapterBase.h
@@ -92,7 +92,7 @@ public:
void* locationExt,
enum loc_sess_status status,
LocPosTechMask loc_technology_mask);
- virtual void reportSv(QcomGnssSvStatus &svStatus,
+ virtual void reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt);
virtual void reportStatus(GpsStatusValue status);
diff --git a/gps/core/LocApiBase.cpp b/gps/core/LocApiBase.cpp
index 2212c22..8247d0a 100644
--- a/gps/core/LocApiBase.cpp
+++ b/gps/core/LocApiBase.cpp
@@ -253,7 +253,7 @@ void LocApiBase::reportPosition(UlpLocation &location,
);
}
-void LocApiBase::reportSv(QcomGnssSvStatus &svStatus,
+void LocApiBase::reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt)
{
diff --git a/gps/core/LocApiBase.h b/gps/core/LocApiBase.h
index 026a53c..9ea5560 100644
--- a/gps/core/LocApiBase.h
+++ b/gps/core/LocApiBase.h
@@ -113,7 +113,7 @@ public:
enum loc_sess_status status,
LocPosTechMask loc_technology_mask =
LOC_POS_TECH_MASK_DEFAULT);
- void reportSv(QcomGnssSvStatus &svStatus,
+ void reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt);
void reportStatus(GpsStatusValue status);
diff --git a/gps/core/UlpProxyBase.h b/gps/core/UlpProxyBase.h
index 7c74bc8..8678c6d 100644
--- a/gps/core/UlpProxyBase.h
+++ b/gps/core/UlpProxyBase.h
@@ -64,7 +64,7 @@ public:
LocPosTechMask loc_technology_mask) {
return false;
}
- inline virtual bool reportSv(QcomGnssSvStatus &svStatus,
+ inline virtual bool reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt) {
return false;
diff --git a/gps/core/gps_extended_c.h b/gps/core/gps_extended_c.h
index efb9b07..b3c1092 100644
--- a/gps/core/gps_extended_c.h
+++ b/gps/core/gps_extended_c.h
@@ -256,7 +256,7 @@ typedef struct {
/** Represents SV status. */
typedef struct {
- /** set to sizeof(QcomGnssSvStatus) */
+ /** set to sizeof(QcomSvStatus) */
size_t size;
/** Number of SVs currently visible. */
@@ -293,7 +293,7 @@ typedef struct {
*/
uint64_t bds_used_in_fix_mask;
-} QcomGnssSvStatus;
+} QcomSvStatus;
enum loc_sess_status {
LOC_SESS_SUCCESS,
diff --git a/gps/loc_api/libloc_api_50001/LocEngAdapter.cpp b/gps/loc_api/libloc_api_50001/LocEngAdapter.cpp
index 8f578ae..364b2d9 100644
--- a/gps/loc_api/libloc_api_50001/LocEngAdapter.cpp
+++ b/gps/loc_api/libloc_api_50001/LocEngAdapter.cpp
@@ -375,14 +375,14 @@ void LocEngAdapter::reportPosition(UlpLocation &location,
}
}
-void LocInternalAdapter::reportSv(QcomGnssSvStatus &svStatus,
+void LocInternalAdapter::reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt){
sendMsg(new LocEngReportSv(mLocEngAdapter, svStatus,
locationExtended, svExt));
}
-void LocEngAdapter::reportSv(QcomGnssSvStatus &svStatus,
+void LocEngAdapter::reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt)
{
diff --git a/gps/loc_api/libloc_api_50001/LocEngAdapter.h b/gps/loc_api/libloc_api_50001/LocEngAdapter.h
index 9a611ef..8964ede 100644
--- a/gps/loc_api/libloc_api_50001/LocEngAdapter.h
+++ b/gps/loc_api/libloc_api_50001/LocEngAdapter.h
@@ -55,7 +55,7 @@ public:
void* locationExt,
enum loc_sess_status status,
LocPosTechMask loc_technology_mask);
- virtual void reportSv(QcomGnssSvStatus &svStatus,
+ virtual void reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt);
virtual void reportStatus(GpsStatusValue status);
@@ -269,7 +269,7 @@ public:
void* locationExt,
enum loc_sess_status status,
LocPosTechMask loc_technology_mask);
- virtual void reportSv(QcomGnssSvStatus &svStatus,
+ virtual void reportSv(QcomSvStatus &svStatus,
GpsLocationExtended &locationExtended,
void* svExt);
virtual void reportStatus(GpsStatusValue status);
diff --git a/gps/loc_api/libloc_api_50001/loc_eng.cpp b/gps/loc_api/libloc_api_50001/loc_eng.cpp
index 761430d..2bd8b89 100644
--- a/gps/loc_api/libloc_api_50001/loc_eng.cpp
+++ b/gps/loc_api/libloc_api_50001/loc_eng.cpp
@@ -828,7 +828,7 @@ void LocEngReportPosition::send() const {
// case LOC_ENG_MSG_REPORT_SV:
LocEngReportSv::LocEngReportSv(LocAdapterBase* adapter,
- QcomGnssSvStatus &sv,
+ QcomSvStatus &sv,
GpsLocationExtended &locExtended,
void* svExt) :
LocMsg(), mAdapter(adapter), mSvStatus(sv),
diff --git a/gps/loc_api/libloc_api_50001/loc_eng_msg.h b/gps/loc_api/libloc_api_50001/loc_eng_msg.h
index 2b9a81d..73a71c0 100644
--- a/gps/loc_api/libloc_api_50001/loc_eng_msg.h
+++ b/gps/loc_api/libloc_api_50001/loc_eng_msg.h
@@ -105,11 +105,11 @@ struct LocEngReportPosition : public LocMsg {
struct LocEngReportSv : public LocMsg {
LocAdapterBase* mAdapter;
- const QcomGnssSvStatus mSvStatus;
+ const QcomSvStatus mSvStatus;
const GpsLocationExtended mLocationExtended;
const void* mSvExt;
LocEngReportSv(LocAdapterBase* adapter,
- QcomGnssSvStatus &sv,
+ QcomSvStatus &sv,
GpsLocationExtended &locExtended,
void* svExtended);
virtual void proc() const;
diff --git a/gps/loc_api/libloc_api_50001/loc_eng_nmea.cpp b/gps/loc_api/libloc_api_50001/loc_eng_nmea.cpp
index 8aa80e0..d1073b5 100644
--- a/gps/loc_api/libloc_api_50001/loc_eng_nmea.cpp
+++ b/gps/loc_api/libloc_api_50001/loc_eng_nmea.cpp
@@ -604,7 +604,7 @@ SIDE EFFECTS
===========================================================================*/
void loc_eng_nmea_generate_sv(loc_eng_data_s_type *loc_eng_data_p,
- const QcomGnssSvStatus &svStatus, const GpsLocationExtended &locationExtended)
+ const QcomSvStatus &svStatus, const GpsLocationExtended &locationExtended)
{
ENTRY_LOG();
diff --git a/gps/loc_api/libloc_api_50001/loc_eng_nmea.h b/gps/loc_api/libloc_api_50001/loc_eng_nmea.h
index d41ee74..2563a8f 100644
--- a/gps/loc_api/libloc_api_50001/loc_eng_nmea.h
+++ b/gps/loc_api/libloc_api_50001/loc_eng_nmea.h
@@ -37,7 +37,7 @@
void loc_eng_nmea_send(char *pNmea, int length, loc_eng_data_s_type *loc_eng_data_p);
int loc_eng_nmea_put_checksum(char *pNmea, int maxSize);
-void loc_eng_nmea_generate_sv(loc_eng_data_s_type *loc_eng_data_p, const QcomGnssSvStatus &svStatus, const GpsLocationExtended &locationExtended);
+void loc_eng_nmea_generate_sv(loc_eng_data_s_type *loc_eng_data_p, const QcomSvStatus &svStatus, const GpsLocationExtended &locationExtended);
void loc_eng_nmea_generate_pos(loc_eng_data_s_type *loc_eng_data_p, const UlpLocation &location, const GpsLocationExtended &locationExtended, unsigned char generate_nmea);
#endif // LOC_ENG_NMEA_H
diff --git a/gps/loc_api/loc_api_v02/LocApiV02.cpp b/gps/loc_api/loc_api_v02/LocApiV02.cpp
index 3a4d725..a73459b 100644
--- a/gps/loc_api/loc_api_v02/LocApiV02.cpp
+++ b/gps/loc_api/loc_api_v02/LocApiV02.cpp
@@ -1982,7 +1982,7 @@ void LocApiV02 :: reportPosition (
void LocApiV02 :: reportSv (
const qmiLocEventGnssSvInfoIndMsgT_v02 *gnss_report_ptr)
{
- GnssSvStatus SvStatus;
+ QcomSvStatus SvStatus;
GpsLocationExtended locationExtended;
int num_svs_max, i;
const qmiLocSvInfoStructT_v02 *sv_info_ptr;
@@ -1993,7 +1993,7 @@ void LocApiV02 :: reportSv (
gnss_report_ptr->altitudeAssumed);
num_svs_max = 0;
- memset (&SvStatus, 0, sizeof (GnssSvStatus));
+ memset (&SvStatus, 0, sizeof (QcomSvStatus));
memset(&locationExtended, 0, sizeof (GpsLocationExtended));
locationExtended.size = sizeof(locationExtended);
if(gnss_report_ptr->svList_valid == 1)