Skip to content

Commit

Permalink
Add support for GPS privacy lock. DO NOT MERGE
Browse files Browse the repository at this point in the history
Change-Id: Iea57de70503d9008cc6be1a7101370948c15bc29
Signed-off-by: Mike Lockwood <lockwood@android.com>
  • Loading branch information
mikeandroid committed Mar 28, 2010
1 parent 68f279f commit b678f3b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/hardware_legacy/gps.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit b678f3b

Please sign in to comment.