diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-29 12:49:06 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-29 12:49:06 -0500 |
commit | 76535a3b3318266b691a12bef71db467be47282d (patch) | |
tree | 146327dc1f26918ef61eee30e513d88e033768d1 /driver_proto.c | |
parent | a3af061b227d8334f6f69191ee211baf66de2408 (diff) | |
download | gpsd-76535a3b3318266b691a12bef71db467be47282d.tar.gz |
Add a minimum packet length to every driver.
Length 0 means the minimum is unknown and the driver should use character I/O.
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 bbbd7c0d..e8953cf8 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -533,6 +533,8 @@ const struct gps_type_t driver__proto__binary = { #ifdef TIMEHINT_ENABLE .time_offset = _proto_time_offset, #endif /* TIMEHINT_ENABLE */ + /* minimum length of packet, used for I/O optimization */ + .minlength = 0; /* *INDENT-ON* */ }; #endif /* defined(_PROTO__ENABLE) && defined(BINARY_ENABLE) */ |