summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-17 18:27:28 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-17 18:27:28 +0000
commit606c667f37b2202517905fab0e585171d4bc76a7 (patch)
tree41db460ea7019988c333ebc10d30cd22b580f237 /gps.h
parent2bdc358349945158f6b3f3a3194b2f5592055dec (diff)
downloadgpsd-606c667f37b2202517905fab0e585171d4bc76a7.tar.gz
Teach cgps to use Gary's function for deducing unit defaults.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gps.h b/gps.h
index bf19dc8e..5ef7baac 100644
--- a/gps.h
+++ b/gps.h
@@ -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 */