diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-08-17 18:27:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-08-17 18:27:28 +0000 |
commit | 606c667f37b2202517905fab0e585171d4bc76a7 (patch) | |
tree | 41db460ea7019988c333ebc10d30cd22b580f237 /gps.h | |
parent | 2bdc358349945158f6b3f3a3194b2f5592055dec (diff) | |
download | gpsd-606c667f37b2202517905fab0e585171d4bc76a7.tar.gz |
Teach cgps to use Gary's function for deducing unit defaults.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -299,6 +299,9 @@ void gps_set_raw_hook(struct gps_data_t *gpsdata, void (*hook)(struct gps_data_t int gps_set_callback(struct gps_data_t *gpsdata, void (*callback)(struct gps_data_t *sentence, char *buf, size_t len, int level), pthread_t *handler); int gps_del_callback(struct gps_data_t *gpsdata, pthread_t *handler); +enum unit {unspecified, imperial, nautical, metric}; +enum unit gpsd_units(void); + extern void gps_clear_fix(/*@ out @*/struct gps_fix_t *); extern void gps_merge_fix(/*@ out @*/struct gps_fix_t *, gps_mask_t, @@ -312,7 +315,6 @@ extern double gpstime_to_unix(int, double); extern void unix_to_gpstime(double, /*@out@*/int *, /*@out@*/double *); extern double earth_distance(double, double, double, double); extern double wgs84_separation(double, double); -extern int gpsd_units(void); /* some multipliers for interpreting GPS output */ #define METERS_TO_FEET 3.2808399 /* Meters to U.S./British feet */ |