summaryrefslogtreecommitdiff
path: root/dgpsip.c
Commit message (Collapse)AuthorAgeFilesLines
* Sigh...avoid harmless but *annoying* name collision...Eric S. Raymond2006-11-021-3/+3
| | | | | between our LOG_ERR and the syslog() macro by changing ours to LOG_ERROR.
* Define uniform log level macros.Eric S. Raymond2006-11-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | This patch defines a uniform set of log levels and changes all gpsd_report() instances to use them. In most cases (I'd say about 80%) this will make no observable difference, as the numeric log levels the code was using were not too badly inconsistent anyway. The new log level macros are defined and described in gpsd.h. The main thing I wanted was to be able to consistently force dumping of all I/O to devices and clients with -D 4. Some drivers didn't honor this. One or two still may not through lack of an internal write() wrapper that does logging; there will need to be some followup changes. Level 0 messages are always displayed, but to make the semantics clearer there are two defines LOG_ERR and LOG_SHOUT. Level 5 is still super-raw I/O reporting. Level 6 and 7 messages are tagged RAW_LOG+1 and RAW_LOG+2; I was particularly careful about these because we have one report of a user who is getting good results from Garmin serial only at -D 7 or up, and perish forbid I should interfere with that bug being found.
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-2/+4
| | | | | | ...for those who want to build their own apps linked against libgps and want the headers to work. Works on OpenBSD, tested by Jeff Francis on OS X and Linux
* 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 #!
* strchr returns char *, and NULL if it can't find what was sought.Chris Kuethe2006-08-181-2/+2
| | | | Test the return value appropriately.
* Ville Nuorvala merges some common code.Eric S. Raymond2006-06-091-12/+0
|
* splint cleanupEric S. Raymond2006-06-071-18/+1
|
* _Wall cleanup.Eric S. Raymond2005-07-291-1/+1
|
* More work on the repack() function. Avoid a core dump when processing DGPSIP.Eric S. Raymond2005-07-231-1/+1
|
* Prevent a core dump.Eric S. Raymond2005-07-231-2/+4
|
* Avoid a magic number.Eric S. Raymond2005-07-011-1/+1
|
* Improved diagnostics for DGPS server hunting.Eric S. Raymond2005-06-301-5/+10
|
* Add the ability to probe multiple DGPS servers...Eric S. Raymond2005-06-301-15/+41
| | | | | ...within the distance threshold and connect to the closest one that is actually up.
* More small pre-release cleanups.Eric S. Raymond2005-06-301-2/+2
|
* Experimental code to hunt for a DGPSIP server.Eric S. Raymond2005-06-291-1/+46
|
* Clean up DGPSIP a bit more, some variables don't need to be per-session.Eric S. Raymond2005-06-291-2/+6
|
* Pull the DGPSIP code into its own module.Eric S. Raymond2005-06-291-0/+87
The DGPSIP socket is now part of the session context; it's guarded by the same select as all other socket reads. The latest RTCM104 report from it is relayed to each attached GPS when appropriate. (The old code only passed a correction to the first GPS to be polled after the report came in from the server.)