summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-03-26 15:13:34 -0400
committerMike Lockwood <lockwood@android.com>2010-03-26 15:13:34 -0400
commit7fd85e16828d1dd7d1705524e8610ad5b418d55b (patch)
tree31224216a17d7ffdcd8fb58d8fac7211c82c00da
parent8dd38d6bc8918f2153580111fbd8aef6b9f90cc4 (diff)
downloadlibhardware_legacy-eclair.tar.gz
Change-Id: I598d187c20cc73c3e89a273c4ca5893ed47f147e Signed-off-by: Mike Lockwood <lockwood@android.com>
-rwxr-xr-xinclude/hardware_legacy/gps.h14
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();