From 30219ff6bee36db7e30256de7bd74ca5a4498549 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Fri, 26 Mar 2010 15:13:34 -0400 Subject: [PATCH] Add support for GPS privacy lock. Change-Id: I06dbd4b332926dde836eedb95e15791a7ebe0294 Signed-off-by: Mike Lockwood --- include/hardware_legacy/gps.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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(); -- 2.11.0