From 061857b0799db463d6f0e038d4cb8c59a4124bb5 Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Mon, 10 Jun 2019 10:10:53 -0700 Subject: GnssLocationInfoNotification: move basic location info to top Move basic location info to top so if a new field is added to GnssLocationInfoNotification, it will not impact the basic location info. Change-Id: I362ee0f6f09c10e3df64ed6993b73a256690c38d CRs-fixed: 2468348 --- location/LocationDataTypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/location/LocationDataTypes.h b/location/LocationDataTypes.h index d6abda2..fa0b714 100644 --- a/location/LocationDataTypes.h +++ b/location/LocationDataTypes.h @@ -938,7 +938,8 @@ typedef struct { } GnssSystemTime; typedef struct { - uint32_t size; // set to sizeof(GnssLocationInfo) + uint32_t size; // set to sizeof(GnssLocationInfo) + Location location; // basic locaiton info, latitude, longitude, and etc GnssLocationInfoFlagMask flags; // bitwise OR of GnssLocationInfoBits for param validity float altitudeMeanSeaLevel; // altitude wrt mean sea level float pdop; // position dilusion of precision @@ -971,7 +972,6 @@ typedef struct { GnssMeasUsageInfo measUsageInfo[GNSS_SV_MAX]; // GNSS Measurement Usage info uint8_t leapSeconds; // leap second float timeUncMs; // Time uncertainty in milliseconds - Location location; } GnssLocationInfoNotification; typedef struct { -- cgit v1.2.3