146 |
#include <location/location-gpsd-control.h> |
#include <location/location-gpsd-control.h> |
147 |
#endif |
#endif |
148 |
|
|
149 |
|
typedef struct { |
150 |
|
int num; |
151 |
|
int *PRN; |
152 |
|
int *ss; |
153 |
|
int *used; |
154 |
|
} gps_sat_t; |
155 |
|
|
156 |
|
|
157 |
typedef struct gps_state { |
typedef struct gps_state { |
158 |
#ifndef ENABLE_LIBLOCATION |
#ifndef ENABLE_LIBLOCATION |
159 |
#ifdef ENABLE_GPSBT |
#ifdef ENABLE_GPSBT |
169 |
#else |
#else |
170 |
LocationGPSDevice *device; |
LocationGPSDevice *device; |
171 |
guint idd_changed; |
guint idd_changed; |
172 |
gboolean fix, fix3d; |
int fields; |
173 |
double latitude, longitude; |
double latitude, longitude; |
174 |
double heading, epe; |
double heading, epe; |
175 |
|
gps_sat_t sats; |
176 |
#endif |
#endif |
177 |
} gps_state_t; |
} gps_state_t; |
178 |
|
|
|
typedef struct { |
|
|
int num; |
|
|
int *PRN; |
|
|
int *ss; |
|
|
int *used; |
|
|
} gps_sat_t; |
|
|
|
|
179 |
void gps_init(appdata_t *appdata); |
void gps_init(appdata_t *appdata); |
180 |
void gps_release(appdata_t *appdata); |
void gps_release(appdata_t *appdata); |
181 |
pos_t *gps_get_pos(appdata_t *appdata); |
pos_t *gps_get_pos(appdata_t *appdata); |