summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-12-05 23:54:40 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-12-05 23:54:40 +0000
commit7eb06a950bbd30df099b5d0d08a84983b4c6b8c1 (patch)
tree32b8989444dd1af73dea769847e5156a69ba722d /gps.h
parent46452ebef361fde44d22e5b0d84e6270e594dbad (diff)
downloadgpsd-7eb06a950bbd30df099b5d0d08a84983b4c6b8c1.tar.gz
Add non-blocking check for data waiting from the daemon to the C and C++ APIs.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 42d4352a..1476191c 100644
--- a/gps.h
+++ b/gps.h
@@ -996,6 +996,7 @@ 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_send(struct gps_data_t *gpsdata, const char *fmt, ... );
extern int gps_poll(struct gps_data_t *gpsdata);
+extern bool gps_waiting(struct gps_data_t *gpsdata);
extern int gps_stream(struct gps_data_t *gpsdata, unsigned int flags, /*@null@*/void *);
extern void gps_set_raw_hook(struct gps_data_t *gpsdata, void (*hook)(struct gps_data_t *sentence, char *buf, size_t len));
extern char /*@observer@*/ *gps_errstr(const int);