diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-17 06:58:54 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-17 06:58:54 -0400 |
commit | b55a647314cb5cbb90f8f5131a0778d646587bd3 (patch) | |
tree | 24a3650eb7e157cc976e3534996144df2db9335a /libgpsmm.h | |
parent | b419f3a61cdcfd19ee32ce6812086f1b06b5bb57 (diff) | |
download | gpsd-b55a647314cb5cbb90f8f5131a0778d646587bd3.tar.gz |
A close() method for the C++ binding.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r-- | libgpsmm.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,7 +20,8 @@ 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 + int close(void); // close the GPS + bool waiting(void); //nonblocking check for data waitin void clear_fix(void); void enable_debug(int, FILE*); private: |