2 * gpsdclient.h -- common functions for GPSD clients
4 * This file is Copyright (c) 2010 by the GPSD project
5 * BSD terms apply: see the file COPYING in the distribution root for details.
9 #ifndef _GPSD_GPSDCLIENT_H_
10 #define _GPSD_GPSDCLIENT_H_
12 /* describe a data source */
14 char *spec; /* pointer to actual storage */
17 /*@null@*/char *device;
20 enum unit {unspecified, imperial, nautical, metric};
21 enum unit gpsd_units(void);
22 enum deg_str_type { deg_dd, deg_ddmm, deg_ddmmss };
24 extern /*@observer@*/ char *deg_to_str( enum deg_str_type type, double f);
26 extern void gpsd_source_spec(/*@null@*/const char *fromstring,
27 /*@out@*/struct fixsource_t *source);
29 #endif /* _GPSDCLIENT_H_ */
30 /* gpsdclient.h ends here */