summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-18 13:57:13 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-18 13:57:13 -0400
commitcf684b2a9909561a537a5189c4a2b6a76e3c105d (patch)
tree52c6271ecb6331cf77a0cf3a2db00df194322455 /libgpsmm.h
parentcd86d4410bcff417de15a0fc5eb905ef56c26596 (diff)
downloadgpsd-cf684b2a9909561a537a5189c4a2b6a76e3c105d.tar.gz
Sync the Python and C++ bindings to the C one. Document it properly.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index 93258df2..3fe95f24 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -31,6 +31,7 @@ class LIBQGPSMMSHARED_EXPORT 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* read(void); //block until gpsd returns new data, then return the updated struct
+ const char *data(void); // return the client data buffer
int close(void); // close the GPS
bool waiting(int); // blocking check for data waiting
void clear_fix(void);
@@ -40,8 +41,8 @@ class LIBQGPSMMSHARED_EXPORT gpsmm {
//integrity loss for the entire class
struct gps_data_t* gps_inner_open(const char *host,
const char *port);
- struct gps_data_t _gps_data;
- struct gps_data_t * gps_data() { return &_gps_data; }
- struct gps_data_t* backup(void) { *to_user=*gps_data(); return to_user;}; //return the backup copy
+ struct gps_data_t _gps_state;
+ struct gps_data_t * gps_state() { return &_gps_state; }
+ struct gps_data_t* backup(void) { *to_user=*gps_state(); return to_user;}; //return the backup copy
};
#endif // _GPSD_GPSMM_H_