summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-17 06:58:54 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-17 06:58:54 -0400
commitb55a647314cb5cbb90f8f5131a0778d646587bd3 (patch)
tree24a3650eb7e157cc976e3534996144df2db9335a /libgpsmm.h
parentb419f3a61cdcfd19ee32ce6812086f1b06b5bb57 (diff)
downloadgpsd-b55a647314cb5cbb90f8f5131a0778d646587bd3.tar.gz
A close() method for the C++ binding.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index 0b95afa5..f10b04e9 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -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: