diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-31 18:19:14 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-31 18:19:14 +0000 |
commit | 3db1fa2d2caf268359a4486f600b6a460da95c6d (patch) | |
tree | 3e73089684edaaf41c0cb82a9b39d3e64ec27bc8 /libgpsmm.cpp | |
parent | 6aa0bc03b797007cfce0250a882d4951b601c951 (diff) | |
download | gpsd-3db1fa2d2caf268359a4486f600b6a460da95c6d.tar.gz |
Added stream() entry point to C++ client library.
Diffstat (limited to 'libgpsmm.cpp')
-rw-r--r-- | libgpsmm.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgpsmm.cpp b/libgpsmm.cpp index b0e6b083..2961e58d 100644 --- a/libgpsmm.cpp +++ b/libgpsmm.cpp @@ -25,6 +25,15 @@ struct gps_data_t* gpsmm::open(const char *host, const char *port) { } } +struct gps_data_t* gpsmm::stream(int flags) { + if (gps_stream(gps_data,flags)==-1) { + return NULL; + } + else { + return backup(); + } +} + struct gps_data_t* gpsmm::query(const char *request) { if (gps_query(gps_data,request)==-1) { return NULL; |