summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-08-06 14:47:02 -0400
committerMike Lockwood <lockwood@android.com>2009-08-06 14:47:02 -0400
commita938a932ec28bd82ffbd99fb069f4fd03565c8fa (patch)
treeab595a4906d669b324fecd5097843cf3e48392ba /include
parent7b43699180e593b19092eb2a091c4bca105aca77 (diff)
downloadhardware_libhardware_legacy-a938a932ec28bd82ffbd99fb069f4fd03565c8fa.zip
hardware_libhardware_legacy-a938a932ec28bd82ffbd99fb069f4fd03565c8fa.tar.gz
hardware_libhardware_legacy-a938a932ec28bd82ffbd99fb069f4fd03565c8fa.tar.bz2
gps: Add callback for reporting NMEA data.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/hardware_legacy/gps.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hardware_legacy/gps.h b/include/hardware_legacy/gps.h
index dd3e606..0cd9f04 100755
--- a/include/hardware_legacy/gps.h
+++ b/include/hardware_legacy/gps.h
@@ -190,11 +190,15 @@ typedef void (* gps_status_callback)(GpsStatus* status);
/** Callback with SV status information. */
typedef void (* gps_sv_status_callback)(GpsSvStatus* sv_info);
+/** Callback for reporting NMEA sentences. */
+typedef void (* gps_nmea_callback)(GpsUtcTime timestamp, const char* nmea, int length);
+
/** GPS callback structure. */
typedef struct {
gps_location_callback location_cb;
gps_status_callback status_cb;
gps_sv_status_callback sv_status_cb;
+ gps_nmea_callback nmea_cb;
} GpsCallbacks;