summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-31 18:19:14 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-31 18:19:14 +0000
commit3db1fa2d2caf268359a4486f600b6a460da95c6d (patch)
tree3e73089684edaaf41c0cb82a9b39d3e64ec27bc8 /libgpsmm.h
parent6aa0bc03b797007cfce0250a882d4951b601c951 (diff)
downloadgpsd-3db1fa2d2caf268359a4486f600b6a460da95c6d.tar.gz
Added stream() entry point to C++ client library.
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index 39b94a8d..29200e93 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -19,6 +19,7 @@ class gpsmm {
struct gps_data_t* open(const char *host,const char *port); //opens the connection with gpsd, MUST call this before any other method
struct gps_data_t* open(void); //open() with default values
struct gps_data_t* query(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
int set_callback(void (*hook)(struct gps_data_t *sentence, char *buf, size_t len, int level)); //set a callback funcition, called each time new data arrives
int del_callback(void); //delete the callback function