From 08a01e8e6522b884f840900fc1f6a5cc2e2dc53d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 28 Feb 2009 18:10:11 +0000 Subject: Create infrastructure for allowing changes of parity and stop bits. Mainly useful for debugging odd stuff like Trimbles, most things run 8N1 these days. Don't expose it to the user yet. --- gpsd.h-tail | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gpsd.h-tail') diff --git a/gpsd.h-tail b/gpsd.h-tail index 9993b817..13095950 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -195,7 +195,8 @@ struct gps_type_t { /*@null@*/ssize_t (*get_packet)(struct gps_device_t *session); /*@null@*/gps_mask_t (*parse_packet)(struct gps_device_t *session); /*@null@*/ssize_t (*rtcm_writer)(struct gps_device_t *session, char *rtcmbuf, size_t rtcmbytes); - /*@null@*/bool (*speed_switcher)(struct gps_device_t *session, speed_t speed); + /*@null@*/bool (*speed_switcher)(struct gps_device_t *session, + speed_t speed, char parity, int stopbits); /*@null@*/void (*mode_switcher)(struct gps_device_t *session, int mode); #define MODE_NMEA 0 #define MODE_BINARY 1 -- cgit v1.2.1