summaryrefslogtreecommitdiff
path: root/gpsd.c
Commit message (Collapse)AuthorAgeFilesLines
* splint cleanup.Eric S. Raymond2011-04-061-1/+3
|
* With -pthread, the compiler gets pickier about having the header included.Eric S. Raymond2011-04-051-0/+1
|
* finish renaming gpsd_dbus to dbusexportJon Schlueter2011-04-041-1/+1
| | | | | | renamed gpsd_dbus.h to dbusexport.h renamed internals of doc/* to point at dbusexport instead of gpsd_dbus updated gpsd.c and dbusexport.c to use dbusexport.h
* Give up on trying to splint the DBUS code. The headers confuse splint.Eric S. Raymond2011-04-031-8/+8
| | | | | | Also, splint production for scons. All regression tests pass.
* Regularize some names.Eric S. Raymond2011-04-011-7/+7
|
* gps_maskdump() has been a CPU hog. Drastically reduce the number of calls...Eric S. Raymond2011-03-311-11/+12
| | | | | ...and guard them with debug level so they won't be done when the output would never be shipped anywhere.
* Prevent a compiler warning.Eric S. Raymond2011-03-311-1/+2
|
* Eliminate nowait global when FORCE_NOWAIT.Eric S. Raymond2011-03-291-4/+6
|
* Another step towards complete conditionalizing on FORCE_NOWAIT.Eric S. Raymond2011-03-291-5/+7
|
* Partially revert the previous FORCE_NOWAIT change, as it broke the -n option.Eric S. Raymond2011-03-291-12/+7
|
* Squeeze more code out of the minimal build.Eric S. Raymond2011-03-291-18/+29
|
* More conditioning out of code for minimal build.Eric S. Raymond2011-03-291-5/+9
|
* Add a switch to configure out control-socket switch.Eric S. Raymond2011-03-281-6/+30
|
* Scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-281-4/+4
|
* Remove some dead assignments caught by scan-build.Eric S. Raymond2011-03-281-7/+7
|
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-14/+14
| | | | | | | | | | | Required so clients looking at flag masks in data exported via the shared-memory interface will see the right thing. These were separated originally in order to avoid pushing the reqyuired width of the gpsdata.set flag mask over 32 bits. It became 64 bits in the Version 5 API change, so that constraint went away. All regression tests pass.
* First cut at shared-memory export. Daemon-side only.Eric S. Raymond2011-03-251-0/+18
| | | | | Not configured in by default yet because it produces a strange regression failure.
* Enable gpsd to be built withot socket and subscription support.Eric S. Raymond2011-03-251-129/+170
| | | | | | | | | Built this way it camn only export results via DBUS - or a shared-memory interface not yet implemented. The DBUS option and enabling define are renamed so we have a consistent suffix of export/EXPORT. No logic changes, just some #ifdefs and rearrangements. All regression tests pass. Code splints clean.
* Eliminate an ugly magic number.Eric S. Raymond2011-03-241-1/+1
|
* Pull the last NTPSHM code dependency out of the core library.Eric S. Raymond2011-03-241-1/+38
| | | | | | The npshm stuff is now coupled to everything else in the daemon only through the dispatcher layer. This means that auxiliary tools like gpsmon and gpsctl will no longer try to talk to ntpd at device-initialization time.
* Try to move NTP link activation and deactivation up to the disparcher layer.Eric S. Raymond2011-03-241-0/+18
|
* Reindent code in order to minimize some near-future diffs.Eric S. Raymond2011-03-231-27/+27
|
* POLL subobject name changes: fixes -> tpv, skyview -> sky.Eric S. Raymond2011-03-211-2/+2
|
* Attribute typo fix, and bring the manual in sync.Eric S. Raymond2011-03-171-1/+1
| | | | | | No, we're not going to ship with "time" everywhere except one place in the POLL response; that's a bug. It will either be "time" or "timestamp" everywhere.
* Only send fixes via DBUS when you actually have sat lock.Eric S. Raymond2011-03-101-1/+2
|
* More timestamp_t conversions. No logic changes.Eric S. Raymond2011-03-101-1/+1
| | | | Regression tests, splint, and cppcheck pass.
* Give timestamps their own typedef. No logic changes.Eric S. Raymond2011-03-101-5/+5
| | | | All regression tests pass, splint and cppcheck pass.
* Reduce an unnecessary double to time_t.Eric S. Raymond2011-03-091-1/+1
|
* Regularize #ifdefs. All regression tests pass.Eric S. Raymond2011-03-041-4/+4
|
* NULL-guard device_name in find_device() function call.Jon Schlueter2011-03-011-4/+6
| | | | | | | Cherry-picked from Jon Schlueter's commit of 2011-03-01 06:39:46. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* NULL-guard device in open_device.Jon Schlueter2011-03-011-2/+2
| | | | | | | Cherry-picked from Jon Schlueter's commit of 2011-03-01 06:36:51. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Suppress a spurious error message. All regression tests pass.Eric S. Raymond2011-03-011-0/+1
|
* Eliminate the ntrip_state global.Eric S. Raymond2011-02-261-2/+11
|
* The NTRIP connection state musn't be zeroed on gpsd_activate().Eric S. Raymond2011-02-241-5/+5
| | | | Andre Naujoks informed me of this.
* Add an explanatory comment.Eric S. Raymond2011-02-241-0/+4
|
* Eliminate the context->netgnss_service member.Eric S. Raymond2011-02-241-1/+1
| | | | | | | | | This is more global context that really needed to be per-device state. Instead, create a per-devicd servicetype member to carry this information. Practically apeaking, this means gpsd can now watch multiple NTRIP and DGPS sessions without getting confused. All regressuin tests pass.
* Eliminate the dsock member in the context structure.Eric S. Raymond2011-02-241-9/+82
| | | | | | | | | | | | Another step towards integrating NTRIP support in a way that's actually correct for the daemon architecture. This involved conditioning out code for DGPSIP server lookups, a feature which was never documented and has probably been broken forever. It's actually not even clear there are still any DGPSIP servers still running; the dgpsip package was removed from Debiann at maintainer request in 2008 (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392666). I may yet just rip out that code entirely.
* Move NTRIP per-connection state from global context to private driver area.Eric S. Raymond2011-02-241-8/+6
| | | | | | | The flap over probes revealed that the NTRIP support is bolted onto the daemon in a very awkward way that is likely to cause problems now that it's actually being, like, *used*. This is a step towards making it behave more like a normal driver.
* remove unneeded splint directives around open_device/add_deviceJon Schlueter2011-02-221-7/+0
|
* NTRIP fixes from Andre Naujoks.Eric S. Raymond2011-02-211-4/+40
| | | | I fixed them up to splint clean.
* notify_watchers take a const char * sentenceJon Schlueter2011-02-211-1/+1
|
* change add_device,find_device all take const char *Jon Schlueter2011-02-211-2/+2
|
* whitespace cleanup in gpsd.cJon Schlueter2011-02-211-12/+12
|
* splint cleanup make context,devices, subscribers static scopeJon Schlueter2011-02-211-3/+3
| | | | | in gpsd.c context,devices and subscribers were global in scope, but only ever used in gpsd.c. Made them static scope
* Simplify open_device(), eliminating an onnneeded table lookup.Andre Naujoks2011-02-211-25/+17
| | | | | | All regression tests pass. Live-tested in both -n mode and without -n. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More layer separation. All regression tests pass.Eric S. Raymond2011-02-161-31/+2
|
* Refactoring step. All regression tests pass.Eric S. Raymond2011-02-161-79/+27
| | | | | | | | | | What's going in with this commit, and the last one, is that I'm disentangling the logic for JSON reporting of device state from the daemon dispatcher layer. This means that other programs that use libgpsd *without* necessarily going through the dispatcher layer will be able to do so. No logic changes.
* Refactoring step, no logic changes. All regression tests pass.Eric S. Raymond2011-02-161-37/+34
|
* Splint cleanup. All regression tests pass.Eric S. Raymond2011-02-161-1/+1
|
* Bug fix: RTCM2 JSON dumps get a device field.Eric S. Raymond2011-02-161-2/+3
| | | | All regression tests pass.