summaryrefslogtreecommitdiff
path: root/libgpsmm.cpp
Commit message (Collapse)AuthorAgeFilesLines
* gps_read(): fix some nasty buffer overruns and corruptions.Gary E. Miller2018-07-141-4/+2
| | | | | | | Now pass an optional message buffer to gps_read(). Finally the JSON display in cgps works. Thanks to Virgin Orbit for their support fixing this bug.
* Be more explicit about the return value from gps_close() is not used.Robert Norris2016-08-021-1/+1
| | | | Signed-off-by: Gary E. Miller <gem@rellim.com>
* Whitespace+++Gary E. Miller2015-04-301-3/+3
|
* Yet another SPLINT-ectomyGary E. Miller2015-03-301-2/+0
|
* splint/cppcheck/coverity cleanup.Eric S. Raymond2014-08-211-0/+1
|
* libgpsmm: add is_open methodSimon Dawson2014-01-031-0/+5
| | | | | | | | | | | | | The gpsmm constructor effectively hides the useful status flag returned by the underlying gps_open call. It is extremely useful for client code to be able to check that the gpsmm constructor was successful. To this end, add a gpsmm::is_open method which simply checks that the gpsmm::to_user member is non-NULL. A NULL gpsmm::to_user member can only mean that the constructor was not successful. Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Code is fully cppcheck, splint, and Coverity clean.Eric S. Raymond2013-11-061-0/+2
| | | | All regression tests pass. PPS is live.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-3/+3
|
* Prevent the C++ test client from segfaulting when GPSD is not running.Eric S. Raymond2011-07-061-37/+40
| | | | | C++ clients should test the return from the stream method to see if the open succeeded.
* splint cleanup.Eric S. Raymond2011-04-061-3/+4
|
* Sync the Python and C++ bindings to the C one. Document it properly.Eric S. Raymond2011-03-181-7/+12
|
* Give gps_waiting() a timeout argument. Use it systematically in test clients.Eric S. Raymond2011-03-091-2/+2
| | | | cgps and gpxlogger are live-tested and work. All regression tests pass.
* Rebuild the C++ interface to use RAII.Eric S. Raymond2011-02-021-15/+1
| | | | Simplifies the code and invalidates Berlios ug #17778: crash in libgpsmm.
* Simplify the C++ lib, noo point in supporting the old API now.Eric S. Raymond2011-02-021-28/+29
|
* Ported libgpsmm to major-version 5.David Favro2010-11-091-12/+26
| | | | | | | | | | | | | | It had been completely non-functional since change in parameters to gps_open(). libgpsmm: bug-fix of the port to libgps major-version 5. * Previously, if a gpsmm were constructed, not successfully opened, then destroyed, gps_close() would have still been called. * The new version of libgpsmm may now be backwardsly compatible with libgps major-version<5, although it's not clear why anyone would do that. Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
* Carry through and document the poll() -> read() change.Eric S. Raymond2010-07-141-1/+1
|
* First round of changes for API major version 5:Eric S. Raymond2010-07-131-2/+2
| | | | | * gps_open() becomes reentrant, what gps_open_r() used to be. * gps_poll() is removed in favor of gps_read().
* A close() method for the C++ binding.Eric S. Raymond2010-03-171-0/+4
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-1/+0
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-1/+1
|
* Small IPv6 cleanups. All regression tests pass.Eric S. Raymond2010-01-131-1/+1
|
* Add non-blocking check for data waiting from the daemon to the C and C++ APIs.Eric S. Raymond2009-12-051-0/+4
|
* Thread-hook support and documentation removed.Eric S. Raymond2009-11-291-12/+0
|
* Client library debugging can now nbe enabled at runtime.Eric S. Raymond2009-11-201-0/+9
| | | | | That is, if the CLIENTDEBUG_ENABLE feature switch is on. All regression tests pass.
* Avoid a core dump in the C++ library. Suggestion by Don Weeks.Eric S. Raymond2009-10-061-1/+1
|
* gps_stream() gets a third argument for future expansion. Eric S. Raymond2009-09-241-1/+1
| | | | | We shouldn't try to explain the transition schedule in two different places.
* Introduce gps_send() to the C API.Eric S. Raymond2009-09-231-2/+2
|
* Disentangle the packet raw hook used on the client side...Eric S. Raymond2009-09-171-1/+1
| | | | | | ...from the internals of gpsd. Besides being better factoring, this will give us better control of the daemon's report-generation policy in the future. All regression tests pass. Codebase splints clean.
* Added stream() entry point to C++ client library.Eric S. Raymond2009-08-311-0/+9
|
* Move implementation of constructor to .cpp file, initialize gps.Bernd Zeimetz2009-05-241-0/+2
| | | | Patch by ewoerner.
* Make this consistent with the s/localhost/127.0.0.1/ transition.Chris Kuethe2007-01-051-1/+1
| | | | >From Andreas Stricker
* License change.Chris Kuethe2006-09-211-1/+4
| | | | | | | Alfredo Pironti has granted us permission to distribute this software under the same BSD license as the rest of the tree. Thanks Alfredo! http://lists.berlios.de/pipermail/gpsd-dev/2006-September/004376.html
* Add subversion ID tags near the beginning of every file.Chris Kuethe2006-09-211-0/+1
| | | | First line where possible, second line for scripts called with #!
* Clean up after the raw_hook architecture change.Eric S. Raymond2005-06-121-1/+1
|
* Change API so raw_hook takes a length argument; supports dumping binary packets.Eric S. Raymond2005-05-261-1/+1
|
* Support R=2.Eric S. Raymond2005-05-241-1/+1
|
* Merged in thread-callback and C++-wrapper support fom Alfredo Pironti.Eric S. Raymond2005-05-201-0/+62