diff options
author | Gary E. Miller <gem@rellim.com> | 2005-08-25 04:27:32 +0000 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2005-08-25 04:27:32 +0000 |
commit | 691f1b49254dcf7cf3d2ed76a4a896c6b21dd3b0 (patch) | |
tree | 8a6b037548255485136937ab180d2edd508c4859 /gps.h | |
parent | 7cb4bce010f36f708eba41a230c445451b7c63a3 (diff) | |
download | gpsd-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 *, |