summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-08-25 04:27:32 +0000
committerGary E. Miller <gem@rellim.com>2005-08-25 04:27:32 +0000
commit691f1b49254dcf7cf3d2ed76a4a896c6b21dd3b0 (patch)
tree8a6b037548255485136937ab180d2edd508c4859 /gps.h
parent7cb4bce010f36f708eba41a230c445451b7c63a3 (diff)
downloadgpsd-691f1b49254dcf7cf3d2ed76a4a896c6b21dd3b0.tar.gz
Add new deg_to_str() function to libgps.
Use to convert degrees to various string representations.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 5ef7baac..67c4e284 100644
--- a/gps.h
+++ b/gps.h
@@ -301,6 +301,8 @@ int gps_del_callback(struct gps_data_t *gpsdata, pthread_t *handler);
enum unit {unspecified, imperial, nautical, metric};
enum unit gpsd_units(void);
+enum deg_str_type { deg_dd, deg_ddmm, deg_ddmmss };
+extern char *deg_to_str( enum deg_str_type type, double f);
extern void gps_clear_fix(/*@ out @*/struct gps_fix_t *);
extern void gps_merge_fix(/*@ out @*/struct gps_fix_t *,