The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _HARDWARE_GPS_H |
| 18 | #define _HARDWARE_GPS_H |
| 19 | |
| 20 | #include <stdint.h> |
| 21 | |
| 22 | #if __cplusplus |
| 23 | extern "C" { |
| 24 | #endif |
| 25 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 26 | /** Milliseconds since January 1, 1970 */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 27 | typedef int64_t GpsUtcTime; |
| 28 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 29 | /** Maximum number of SVs for gps_sv_status_callback(). */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 30 | #define GPS_MAX_SVS 32 |
| 31 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 32 | /** Requested mode for GPS operation. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 33 | typedef uint16_t GpsPositionMode; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 34 | // IMPORTANT: Note that the following values must match |
| 35 | // constants in GpsLocationProvider.java. |
| 36 | /** Mode for running GPS standalone (no assistance). */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 37 | #define GPS_POSITION_MODE_STANDALONE 0 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 38 | /** SUPL MS-Based mode. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 39 | #define GPS_POSITION_MODE_MS_BASED 1 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 40 | /** SUPL MS-Assisted mode. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 41 | #define GPS_POSITION_MODE_MS_ASSISTED 2 |
| 42 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 43 | /** GPS status event values. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 44 | typedef uint16_t GpsStatusValue; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 45 | // IMPORTANT: Note that the following values must match |
| 46 | // constants in GpsLocationProvider.java. |
| 47 | /** GPS status unknown. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 48 | #define GPS_STATUS_NONE 0 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 49 | /** GPS has begun navigating. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 50 | #define GPS_STATUS_SESSION_BEGIN 1 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 51 | /** GPS has stopped navigating. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 52 | #define GPS_STATUS_SESSION_END 2 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 53 | /** GPS has powered on but is not navigating. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 54 | #define GPS_STATUS_ENGINE_ON 3 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 55 | /** GPS is powered off. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 56 | #define GPS_STATUS_ENGINE_OFF 4 |
| 57 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 58 | /** Flags to indicate which values are valid in a GpsLocation. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 59 | typedef uint16_t GpsLocationFlags; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 60 | // IMPORTANT: Note that the following values must match |
| 61 | // constants in GpsLocationProvider.java. |
| 62 | /** GpsLocation has valid latitude and longitude. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 63 | #define GPS_LOCATION_HAS_LAT_LONG 0x0001 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 64 | /** GpsLocation has valid altitude. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 65 | #define GPS_LOCATION_HAS_ALTITUDE 0x0002 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 66 | /** GpsLocation has valid speed. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 67 | #define GPS_LOCATION_HAS_SPEED 0x0004 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 68 | /** GpsLocation has valid bearing. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 69 | #define GPS_LOCATION_HAS_BEARING 0x0008 |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 70 | /** GpsLocation has valid accuracy. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 71 | #define GPS_LOCATION_HAS_ACCURACY 0x0010 |
| 72 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 73 | /** Flags used to specify which aiding data to delete |
| 74 | when calling delete_aiding_data(). */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 75 | typedef uint16_t GpsAidingData; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 76 | // IMPORTANT: Note that the following values must match |
| 77 | // constants in GpsLocationProvider.java. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 78 | #define GPS_DELETE_EPHEMERIS 0x0001 |
| 79 | #define GPS_DELETE_ALMANAC 0x0002 |
| 80 | #define GPS_DELETE_POSITION 0x0004 |
| 81 | #define GPS_DELETE_TIME 0x0008 |
| 82 | #define GPS_DELETE_IONO 0x0010 |
| 83 | #define GPS_DELETE_UTC 0x0020 |
| 84 | #define GPS_DELETE_HEALTH 0x0040 |
| 85 | #define GPS_DELETE_SVDIR 0x0080 |
| 86 | #define GPS_DELETE_SVSTEER 0x0100 |
| 87 | #define GPS_DELETE_SADATA 0x0200 |
| 88 | #define GPS_DELETE_RTI 0x0400 |
| 89 | #define GPS_DELETE_CELLDB_INFO 0x8000 |
| 90 | #define GPS_DELETE_ALL 0xFFFF |
| 91 | |
| 92 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 93 | * Name for the GPS XTRA interface. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 94 | */ |
| 95 | #define GPS_XTRA_INTERFACE "gps-xtra" |
| 96 | |
| 97 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 98 | * Name for the GPS SUPL interface. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 99 | */ |
| 100 | #define GPS_SUPL_INTERFACE "gps-supl" |
| 101 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 102 | /** Represents a location. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 103 | typedef struct { |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 104 | /** Contains GpsLocationFlags bits. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 105 | uint16_t flags; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 106 | /** Represents latitude in degrees. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 107 | double latitude; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 108 | /** Represents longitude in degrees. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 109 | double longitude; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 110 | /** Represents altitude in meters above the WGS 84 reference |
| 111 | * ellipsoid. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 112 | double altitude; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 113 | /** Represents speed in meters per second. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 114 | float speed; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 115 | /** Represents heading in degrees. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 116 | float bearing; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 117 | /** Represents expected accuracy in meters. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 118 | float accuracy; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 119 | /** Timestamp for the location fix. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 120 | GpsUtcTime timestamp; |
| 121 | } GpsLocation; |
| 122 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 123 | /** Represents the status. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 124 | typedef struct { |
| 125 | GpsStatusValue status; |
| 126 | } GpsStatus; |
| 127 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 128 | /** Represents SV information. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 129 | typedef struct { |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 130 | /** Pseudo-random number for the SV. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 131 | int prn; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 132 | /** Signal to noise ratio. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 133 | float snr; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 134 | /** Elevation of SV in degrees. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 135 | float elevation; |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 136 | /** Azimuth of SV in degrees. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 137 | float azimuth; |
| 138 | } GpsSvInfo; |
| 139 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 140 | /** Represents SV status. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 141 | typedef struct { |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 142 | /** Number of SVs currently visible. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 143 | int num_svs; |
| 144 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 145 | /** Contains an array of SV information. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 146 | GpsSvInfo sv_list[GPS_MAX_SVS]; |
| 147 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 148 | /** Represents a bit mask indicating which SVs |
| 149 | * have ephemeris data. |
| 150 | */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 151 | uint32_t ephemeris_mask; |
| 152 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 153 | /** Represents a bit mask indicating which SVs |
| 154 | * have almanac data. |
| 155 | */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 156 | uint32_t almanac_mask; |
| 157 | |
| 158 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 159 | * Represents a bit mask indicating which SVs |
| 160 | * were used for computing the most recent position fix. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 161 | */ |
| 162 | uint32_t used_in_fix_mask; |
| 163 | } GpsSvStatus; |
| 164 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 165 | /** Callback with location information. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 166 | typedef void (* gps_location_callback)(GpsLocation* location); |
| 167 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 168 | /** Callback with status information. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 169 | typedef void (* gps_status_callback)(GpsStatus* status); |
| 170 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 171 | /** Callback with SV status information. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 172 | typedef void (* gps_sv_status_callback)(GpsSvStatus* sv_info); |
| 173 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 174 | /** GPS callback structure. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 175 | typedef struct { |
| 176 | gps_location_callback location_cb; |
| 177 | gps_status_callback status_cb; |
| 178 | gps_sv_status_callback sv_status_cb; |
| 179 | } GpsCallbacks; |
| 180 | |
| 181 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 182 | /** Represents the standard GPS interface. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 183 | typedef struct { |
| 184 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 185 | * Opens the interface and provides the callback routines |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 186 | * to the implemenation of this interface. |
| 187 | */ |
| 188 | int (*init)( GpsCallbacks* callbacks ); |
| 189 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 190 | /** Starts navigating. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 191 | int (*start)( void ); |
| 192 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 193 | /** Stops navigating. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 194 | int (*stop)( void ); |
| 195 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 196 | /** Sets requested frequency of fixes in seconds. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 197 | void (*set_fix_frequency)( int frequency ); |
| 198 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 199 | /** Closes the interface. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 200 | void (*cleanup)( void ); |
| 201 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 202 | /** Injects the current time. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 203 | int (*inject_time)(GpsUtcTime time, int64_t timeReference, |
| 204 | int uncertainty); |
| 205 | |
| 206 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 207 | * Specifies that the next call to start will not use the |
| 208 | * information defined in the flags. GPS_DELETE_ALL is passed for |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 209 | * a cold start. |
| 210 | */ |
| 211 | void (*delete_aiding_data)(GpsAidingData flags); |
| 212 | |
| 213 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 214 | * fix_frequency represents the time between fixes in seconds. |
| 215 | * Set fix_frequency to zero for a single-shot fix. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 216 | */ |
| 217 | int (*set_position_mode)(GpsPositionMode mode, int fix_frequency); |
| 218 | |
| 219 | /** Get a pointer to extension information. */ |
| 220 | const void* (*get_extension)(const char* name); |
| 221 | } GpsInterface; |
| 222 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 223 | /** Callback to request the client to download XTRA data. |
| 224 | The client should download XTRA data and inject it by calling |
| 225 | inject_xtra_data(). */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 226 | typedef void (* gps_xtra_download_request)(); |
| 227 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 228 | /** Callback structure for the XTRA interface. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 229 | typedef struct { |
| 230 | gps_xtra_download_request download_request_cb; |
| 231 | } GpsXtraCallbacks; |
| 232 | |
| 233 | /** Extended interface for XTRA support. */ |
| 234 | typedef struct { |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 235 | /** |
| 236 | * Opens the XTRA interface and provides the callback routines |
| 237 | * to the implemenation of this interface. |
| 238 | */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 239 | int (*init)( GpsXtraCallbacks* callbacks ); |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 240 | /** Injects XTRA data into the GPS. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 241 | int (*inject_xtra_data)( char* data, int length ); |
| 242 | } GpsXtraInterface; |
| 243 | |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 244 | /** Returns the hardware GPS interface. */ |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 245 | const GpsInterface* gps_get_hardware_interface(); |
| 246 | |
| 247 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 248 | * Returns the qemu emulated GPS interface. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 249 | */ |
| 250 | const GpsInterface* gps_get_qemu_interface(); |
| 251 | |
| 252 | /** |
The Android Open Source Project | 51704be | 2008-12-17 18:05:50 -0800 | [diff] [blame] | 253 | * Returns the default GPS interface. |
The Android Open Source Project | d6054a3 | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 254 | */ |
| 255 | const GpsInterface* gps_get_interface(); |
| 256 | |
| 257 | #if __cplusplus |
| 258 | } // extern "C" |
| 259 | #endif |
| 260 | |
| 261 | #endif // _HARDWARE_GPS_H |