OSDN Git Service

gps: Set SUPL server via hostname rather than IP address.
authorMike Lockwood <lockwood@android.com>
Fri, 19 Jun 2009 18:57:20 +0000 (14:57 -0400)
committerMike Lockwood <lockwood@android.com>
Fri, 19 Jun 2009 18:57:20 +0000 (14:57 -0400)
The GPS engine needs the hostname for the secure SUPL case
and deferring the DNS lookup to the HAL might be helpful in the future
if the SUPL server is on a carrier's private network.

Signed-off-by: Mike Lockwood <lockwood@android.com>
include/hardware_legacy/gps.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 62b3ee0..dd3e606
@@ -300,9 +300,9 @@ typedef struct {
      */
     int  (*data_conn_failed)();
     /**
-     * Sets the IP address and port for the AGPS server.
+     * Sets the hostname and port for the AGPS server.
      */
-    int  (*set_server)(AGpsType type, uint32_t addr, int port );
+    int  (*set_server)( AGpsType type, const char* hostname, int port );
 } AGpsInterface;
 
 /** Returns the hardware GPS interface. */