From 6885b22471926d3387be8fc491ea016c78917c13 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 18 Aug 2009 15:30:49 +0000 Subject: More steps towards ?DEVICES decoding - refactor code. --- gpsd.h-tail | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gpsd.h-tail') diff --git a/gpsd.h-tail b/gpsd.h-tail index 8c39a8eb..ca36f45e 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -147,6 +147,14 @@ extern size_t oncore_payload_cksum_length(unsigned char id1,unsigned char id2); /* this is where we choose the confidence level to use in reports */ #define GPSD_CONFIDENCE CEP95_SIGMA +/* the map of device class names */ +struct classmap_t { + char *name; + int mask; +}; +#define CLASSMAP_NITEMS 5; +struct classmap_t classmap[CLASSMAP_NITEMS]; + #define NTPSHMSEGS 4 /* number of NTP SHM segments */ struct gps_context_t { @@ -487,9 +495,6 @@ extern int srec_hdr(unsigned int, unsigned char *, unsigned char *); extern int srec_fin(unsigned int, unsigned char *); extern unsigned char hc(unsigned char); -/* exported bits for the GPS flasher */ -bool sirf_write(int fd, unsigned char *msg); - /* application interface */ extern void gpsd_init(struct gps_device_t *, struct gps_context_t *, -- cgit v1.2.1