summaryrefslogtreecommitdiff
path: root/www/writing-a-driver.xml
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-10 04:47:03 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-10 04:47:03 +0000
commitf002dd431b2506ff7a1cd77545d9bc76edf59bc1 (patch)
treed8dc3b57425d1a5dd6b696f3cefa2760b7de6c1d /www/writing-a-driver.xml
parentf17f90e2b520cd11a9aebcef0e6edaeaf12efe16 (diff)
downloadgpsd-f002dd431b2506ff7a1cd77545d9bc76edf59bc1.tar.gz
Abolish device classes.
That way of doing things coped poorly if, for example, NMEA and AIVDM packets were reported over the same wire. Instead, have ach device track the packet types it has actually seen and dispatch on that.
Diffstat (limited to 'www/writing-a-driver.xml')
-rw-r--r--www/writing-a-driver.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/www/writing-a-driver.xml b/www/writing-a-driver.xml
index db7e8b2c..d8aeefea 100644
--- a/www/writing-a-driver.xml
+++ b/www/writing-a-driver.xml
@@ -16,6 +16,14 @@
<revhistory>
<revision>
+ <revnumber>1.8</revnumber>
+ <date>9 Aug 2009</date>
+ <authorinitials>er</authorinitials>
+ <revremark>
+ Updated by esr; the device_class experiment failed.
+ </revremark>
+ </revision>
+ <revision>
<revnumber>1.7</revnumber>
<date>24 Jul 2009</date>
<authorinitials>er</authorinitials>
@@ -563,14 +571,6 @@ packet sniffer and <emphasis>must be unique to each
driver</emphasis>. It is used internally to dispatch to the correct
driver when it collects a complete packet.</para>
-<!-- added by ESR, 2009 -->
-<para><structfield>.device_class</structfield> What type of data this
-driver hands back. This value need <emphasis>not</emphasis> be unique
-to each driver. Usually it will be the enumerated value GPS; other
-passible values are RTCM2, RTCM3, and AIS. This field is directly used
-to implement the 'G' command (old format) and the '?DEVICES' command
-(new format).</para>
-
<para><structfield>.trigger</structfield> is the unique string that,
when seen, will confirm your device is present. This will be detected
in <quote><filename>drivers.c</filename></quote> and will probably