summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFred Fettinger <fred.fettinger@motorola.com>2010-01-05 16:54:03 -0600
committerMike Lockwood <lockwood@android.com>2010-03-07 09:30:00 -0500
commit7d675d8ea8cfe856839398bc83a17f8d068a0d41 (patch)
tree4851057e1b2630174aef26fe9d2f034edba59810 /include
parent4eeca2472712d86063715b05345fcff1e0e6fa73 (diff)
downloadhardware_libhardware_legacy-7d675d8ea8cfe856839398bc83a17f8d068a0d41.tar.gz
hardware_libhardware_legacy-7d675d8ea8cfe856839398bc83a17f8d068a0d41.tar.bz2
hardware_libhardware_legacy-7d675d8ea8cfe856839398bc83a17f8d068a0d41.zip
libhardware_legacy: add gps debug extension
The gps debug extension provides a single function that allows the native gps implementation to include an arbitrary string in bugreports. Change-Id: I1bd8e403e421847784804c47d83e3600340b3fea Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include')
-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..c8ef980 100755
--- a/include/hardware_legacy/gps.h
+++ b/include/hardware_legacy/gps.h
@@ -114,6 +114,11 @@ typedef uint16_t AGpsStatusValue;
#define GPS_XTRA_INTERFACE "gps-xtra"
/**
+ * Name for the GPS DEBUG interface.
+ */
+#define GPS_DEBUG_INTERFACE "gps-debug"
+
+/**
* Name for the AGPS interface.
*/
#define AGPS_INTERFACE "agps"
@@ -268,6 +273,15 @@ typedef struct {
int (*inject_xtra_data)( char* data, int length );
} GpsXtraInterface;
+/** Extended interface for DEBUG support. */
+typedef struct {
+ /**
+ * This function should return any information that the native
+ * implementation wishes to include in a bugreport.
+ */
+ size_t (*get_internal_state)(char* buffer, size_t bufferSize);
+} GpsDebugInterface;
+
/** Represents the status of AGPS. */
typedef struct {
AGpsType type;