Add support for GPS privacy lock.
Change-Id: I06dbd4b332926dde836eedb95e15791a7ebe0294 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
8b82f8b9b1
commit
30219ff6be
1 changed files with 14 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue