From 2663033714a98a9c9ea1165c330371b949faec0d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 9 Mar 2011 01:50:53 -0500 Subject: Give gps_waiting() a timeout argument. Use it systematically in test clients. cgps and gpxlogger are live-tested and work. All regression tests pass. --- libgpsmm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgpsmm.h') diff --git a/libgpsmm.h b/libgpsmm.h index 3c77a403..93258df2 100644 --- a/libgpsmm.h +++ b/libgpsmm.h @@ -32,7 +32,7 @@ class LIBQGPSMMSHARED_EXPORT gpsmm { struct gps_data_t* stream(int); //set watcher and policy flags struct gps_data_t* read(void); //block until gpsd returns new data, then return the updated struct int close(void); // close the GPS - bool waiting(void); //nonblocking check for data waitin + bool waiting(int); // blocking check for data waiting void clear_fix(void); void enable_debug(int, FILE*); private: -- cgit v1.2.1