summaryrefslogtreecommitdiff
path: root/libgpsmm.cpp
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.cpp
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.cpp')
-rw-r--r--libgpsmm.cpp4
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));
}