summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-19 15:08:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-19 15:08:22 +0000
commit723087fa9463efa270a8581c8037e44fcc327766 (patch)
tree4fcd2790815d779bfc8ea8a38b276f940a85d33c /gps.h
parent715aabcbb2d082f80740d133761ab7862933021a (diff)
downloadgpsd-723087fa9463efa270a8581c8037e44fcc327766.tar.gz
Make a re-entrance-friendly version of gps_open().
The immediate use for this will be to simplify the code of gpsmon. All regression tests pass and xgps runs sanely. Codebase splints clean.
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 fd493814..3871a5ab 100644
--- a/gps.h
+++ b/gps.h
@@ -973,7 +973,9 @@ struct gps_data_t {
#define WATCH_SCALED 0x04u
#define WATCH_NEWSTYLE 0x10u /* for test purposes only - will go away */
-extern /*@null@*/ struct gps_data_t *gps_open(const char *host, const char *port);
+extern int gps_open_r(const char *host, const char *port,
+ /*@out@*/struct gps_data_t *gpsdata);
+extern /*@null@*/struct gps_data_t *gps_open(const char *host,const char *port);
extern int gps_close(struct gps_data_t *);
extern int gps_query(struct gps_data_t *gpsdata, const char *fmt, ... );
extern int gps_poll(struct gps_data_t *gpsdata);