summaryrefslogtreecommitdiff
path: root/libgpsmm.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 /libgpsmm.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 'libgpsmm.h')
-rw-r--r--libgpsmm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index ad2248f0..bf3d9919 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -21,6 +21,7 @@ class gpsmm {
struct gps_data_t* send(const char *request); //put a command to gpsd and return the updated struct
struct gps_data_t* stream(int); //set watcher and policy flags
struct gps_data_t* poll(void); //block until gpsd returns new data, then return the updated struct
+ bool waiting(void); //nonblocking check for data waitin
void clear_fix(void);
void enable_debug(int, FILE*);
private: