summaryrefslogtreecommitdiffstats
path: root/include/hardware/gps.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-06-29 15:10:36 -0400
committerMike Lockwood <lockwood@android.com>2011-06-29 15:10:36 -0400
commit8aac5911c9aab1307aa34dd0d92a29ec78f3f9fa (patch)
tree7a1468f2fc9e2cba223e7c1945776751f818a781 /include/hardware/gps.h
parentac0e067896c44b15c654800d6b232d6d2f813bf8 (diff)
downloadhardware_libhardware-8aac5911c9aab1307aa34dd0d92a29ec78f3f9fa.zip
hardware_libhardware-8aac5911c9aab1307aa34dd0d92a29ec78f3f9fa.tar.gz
hardware_libhardware-8aac5911c9aab1307aa34dd0d92a29ec78f3f9fa.tar.bz2
GPS: Add support for on-demand NTP time injection
Change-Id: I95ea2bc2a345d6fbde22356f575506385257e574 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/hardware/gps.h')
-rw-r--r--include/hardware/gps.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hardware/gps.h b/include/hardware/gps.h
index 235c72d..7e038f9 100644
--- a/include/hardware/gps.h
+++ b/include/hardware/gps.h
@@ -101,6 +101,8 @@ typedef uint16_t GpsLocationFlags;
#define GPS_CAPABILITY_MSA 0x0000004
/** GPS supports single-shot fixes */
#define GPS_CAPABILITY_SINGLE_SHOT 0x0000008
+/** GPS supports on demand time injection */
+#define GPS_CAPABILITY_ON_DEMAND_TIME 0x0000010
/** Flags used to specify which aiding data to delete
when calling delete_aiding_data(). */
@@ -354,6 +356,9 @@ typedef void (* gps_acquire_wakelock)();
/** Callback utility for releasing the GPS wakelock. */
typedef void (* gps_release_wakelock)();
+/** Callback for requesting NTP time */
+typedef void (* gps_request_utc_time)();
+
/** Callback for creating a thread that can call into the Java framework code.
* This must be used to create any threads that report events up to the framework.
*/
@@ -371,6 +376,7 @@ typedef struct {
gps_acquire_wakelock acquire_wakelock_cb;
gps_release_wakelock release_wakelock_cb;
gps_create_thread create_thread_cb;
+ gps_request_utc_time request_utc_time_cb;
} GpsCallbacks;