diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-28 09:00:25 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-28 09:00:25 -0500 |
commit | 61689e31730f70536030953e43077de9aa3deb8f (patch) | |
tree | 2f1379887b8d9a7108482b3f4d628e3b98f861b3 /gpsd.h-tail | |
parent | e9b2b009df63cb60cd8b155aafbdb26d0b3ab110 (diff) | |
download | gpsd-61689e31730f70536030953e43077de9aa3deb8f.tar.gz |
Document what's going on with the source types.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 38269e38..dfb73fba 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -284,14 +284,14 @@ struct gps_type_t { }; typedef enum {source_unknown, - source_blockdev, - source_rs232, - source_usb, - source_bluetooth, - source_pty, - source_tcp, - source_udp} - sourcetype_t; + source_blockdev, /* block devices can't be GPS sources */ + source_rs232, /* potential GPS source, not discoverable */ + source_usb, /* potential GPS source, discoverable */ + source_bluetooth, /* potential GPS source, discoverable */ + source_pty, /* PTY: case detected but not used */ + source_tcp, /* TCP/IP stream: case detected but not used */ + source_udp, /* UDP stream: case detected but not used */ +} sourcetype_t; struct gps_device_t { /* session object, encapsulates all global state */ |