diff options
author | Mike Lockwood <lockwood@android.com> | 2010-03-26 15:13:34 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-03-26 15:13:34 -0400 |
commit | 7fd85e16828d1dd7d1705524e8610ad5b418d55b (patch) | |
tree | 31224216a17d7ffdcd8fb58d8fac7211c82c00da | |
parent | 8dd38d6bc8918f2153580111fbd8aef6b9f90cc4 (diff) | |
download | libhardware_legacy-eclair.tar.gz |
Add support for GPS privacy lock. DO NOT MERGEandroid-cts-2.1_r5android-cts-2.1_r4android-cts-2.1_r3android-cts-2.1_r2eclair
Change-Id: I598d187c20cc73c3e89a273c4ca5893ed47f147e
Signed-off-by: Mike Lockwood <lockwood@android.com>
-rwxr-xr-x | include/hardware_legacy/gps.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/hardware_legacy/gps.h b/include/hardware_legacy/gps.h index 0cd9f04..ed7fecc 100755 --- a/include/hardware_legacy/gps.h +++ b/include/hardware_legacy/gps.h @@ -118,6 +118,11 @@ typedef uint16_t AGpsStatusValue; */ #define AGPS_INTERFACE "agps" +/** + * Name for the GPS privacy interface. + */ +#define GPS_PRIVACY_INTERFACE "privacy" + /** Represents a location. */ typedef struct { /** Contains GpsLocationFlags bits. */ @@ -309,6 +314,15 @@ typedef struct { int (*set_server)( AGpsType type, const char* hostname, int port ); } AGpsInterface; +/** Extended interface for GPS privacy support. */ +typedef struct { + /** + * Opens the AGPS interface and provides the callback routines + * to the implemenation of this interface. + */ + void (*set_privacy_lock)( int enable_lock ); +} GpsPrivacyInterface; + /** Returns the hardware GPS interface. */ const GpsInterface* gps_get_hardware_interface(); |