summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-03-29 05:23:23 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-03-29 05:23:23 +0000
commitf94f5de72a1044e3a2833829f2750a974a39f029 (patch)
tree1719166a15dfc279fc9dd8e65252c35084cf5863 /HACKING
parenta8d7c3dad55d8acea756d3bd8a3c8d5665936b7f (diff)
downloadgpsd-f94f5de72a1044e3a2833829f2750a974a39f029.tar.gz
Make sure all drivers set the packet tag field.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING6
1 files changed, 6 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 42ca27bf..a7c930e8 100644
--- a/HACKING
+++ b/HACKING
@@ -191,6 +191,12 @@ Your packet parser must return field-validity mask bits (using the
The watcher-mode logic relies on these as its way of knowing what to
publish.
+Your packet parser is also responsible for setting the tag field
+in the gps_data_t structure. This is the string that will be emitted
+as the first field of each $ record for profiling. The packet getter
+will set the sentence-length for you; it will be raw byte length,
+including both payload and header/trailer bytes.
+
Note, also, that all the timestamps your driver puts in the session
structure should be UTC (with leap-second corrections) not just Unix
seconds since the epoch. The report-generator function for D