diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-07-31 15:52:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-07-31 15:52:17 +0000 |
commit | cfb391e709bf405d2b3ba35647a43f4b6d3a1182 (patch) | |
tree | ce64ac726db3d0033ce3f209c99df3d48a6549c4 /gpsd.h-tail | |
parent | 5d1c9c43996a7e837280b8e7188f6f1e21317492 (diff) | |
download | gpsd-cfb391e709bf405d2b3ba35647a43f4b6d3a1182.tar.gz |
Break per-channel configuration bits out into a separate config structure...
...so they can be changed as a block.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index c4aabd7d..cb365726 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -379,6 +379,12 @@ struct gps_device_t { /* here are the available GPS drivers */ extern const struct gps_type_t **gpsd_drivers; +/* isolate this for the request parser */ +struct chanconfig_t { + int raw; /* is client in raw mode? */ + enum {casoc=0, nocasoc=1} buffer_policy; /* buffering policy */ +}; + /* gpsd library internal prototypes */ extern gps_mask_t nmea_parse_input(struct gps_device_t *); extern gps_mask_t nmea_parse(char *, struct gps_device_t *); |