diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-02-08 18:09:31 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-02-08 18:09:31 +0000 |
commit | d9e04f9c0c30be31f601cd038057af88936ea2c7 (patch) | |
tree | 714ec880b03f260489e453960105408e707f1750 /driver_proto.c | |
parent | 7d9de0cec1464487ed6d889054db8188d57fc917 (diff) | |
download | gpsd-d9e04f9c0c30be31f601cd038057af88936ea2c7.tar.gz |
Add a packet_type member to the device structure.
This is so we can easily map from a driver to its binary packet type.
gpsctl uses this to check whether a mode change has succeesded; no
changes to gpsd logic. All regression tests pass.
Diffstat (limited to 'driver_proto.c')
-rw-r--r-- | driver_proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver_proto.c b/driver_proto.c index e2e4ef16..f83639ea 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -372,6 +372,8 @@ static void _proto__wrapup(struct gps_device_t *session) struct gps_type_t _proto__binary = { /* Full name of type */ .type_name = "_proto_ binary", + /* associated lexer packet type */ + .packet_type = NMEA_PACKET; /* Response string that identifies device (not active) */ .trigger = NULL, /* Number of satellite channels supported by the device */ |