diff options
author | Mike Lockwood <lockwood@android.com> | 2010-03-26 15:13:34 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-03-28 10:02:57 -0400 |
commit | b678f3bb6c3fa3cc88cda872909ace5791a6304c (patch) | |
tree | 447a8a14f1ed44c8401c95966a8620549741b26e | |
parent | 68f279fa86145752e424a9cbed1a2e2ee21e10b1 (diff) | |
download | hardware_libhardware_legacy-b678f3bb6c3fa3cc88cda872909ace5791a6304c.zip hardware_libhardware_legacy-b678f3bb6c3fa3cc88cda872909ace5791a6304c.tar.gz hardware_libhardware_legacy-b678f3bb6c3fa3cc88cda872909ace5791a6304c.tar.bz2 |
Add support for GPS privacy lock. DO NOT MERGE
Change-Id: Iea57de70503d9008cc6be1a7101370948c15bc29
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 6bf7051..84ab348 100755 --- a/include/hardware_legacy/gps.h +++ b/include/hardware_legacy/gps.h @@ -124,6 +124,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. */ @@ -324,6 +329,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(); |