diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-12-05 23:54:40 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-12-05 23:54:40 +0000 |
commit | 7eb06a950bbd30df099b5d0d08a84983b4c6b8c1 (patch) | |
tree | 32b8989444dd1af73dea769847e5156a69ba722d /libgpsmm.cpp | |
parent | 46452ebef361fde44d22e5b0d84e6270e594dbad (diff) | |
download | gpsd-7eb06a950bbd30df099b5d0d08a84983b4c6b8c1.tar.gz |
Add non-blocking check for data waiting from the daemon to the C and C++ APIs.
Diffstat (limited to 'libgpsmm.cpp')
-rw-r--r-- | libgpsmm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgpsmm.cpp b/libgpsmm.cpp index 85b675ab..e04a263d 100644 --- a/libgpsmm.cpp +++ b/libgpsmm.cpp @@ -56,6 +56,10 @@ struct gps_data_t* gpsmm::poll(void) { } } +bool gpsmm::waiting(void) { + return gps_waiting(gps_data); +} + void gpsmm::clear_fix(void) { gps_clear_fix(&(gps_data->fix)); } |