diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-20 16:52:53 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-20 16:52:53 -0500 |
commit | 54fb5427ed51ec65e620159ab0d0474d43b5145a (patch) | |
tree | bfd13a95e78a03bf0d98d6fe190cb7e40e9a085f /gpsd.h-tail | |
parent | 54fe1ec39a26c8cef311fdf7963f22252ebf5664 (diff) | |
download | gpsd-54fb5427ed51ec65e620159ab0d0474d43b5145a.tar.gz |
Avoid overexposure of an internal mask. EOF_SET -> EOF_IS
Also, use PPSDRIFT_SET as a client-side status flag for JSON PPS rather
than the (not yet shipped) TIMEDRIFT_SET. Next release we're probably
going to add a drift object for in-line time.
No logic changes. All regression tests pass.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 741f58b0..a9d25063 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -327,15 +327,16 @@ typedef enum { #define STATUS_DGPS_FIX 2 /* yes, with DGPS */ #define INTERNAL_SET(n) ((gps_mask_t)(1llu<<(SET_HIGH_BIT+(n)))) -#define RAW_IS INTERNAL_SET(1) /* raw pseudorange data available */ -#define USED_IS INTERNAL_SET(2) /* sat-used count available */ -#define DRIVER_IS INTERNAL_SET(3) /* driver type identified */ -#define CLEAR_IS INTERNAL_SET(4) /* starts a reporting cycle */ -#define REPORT_IS INTERNAL_SET(5) /* ends a reporting cycle */ -#define NODATA_IS INTERNAL_SET(6) /* no data read from fd */ -#define PPSTIME_IS INTERNAL_SET(7) /* precision time is available */ -#define PERR_IS INTERNAL_SET(8) /* PDOP set */ -#define PASSTHROUGH_IS INTERNAL_SET(9) /* passthrough mode */ +#define RAW_IS INTERNAL_SET(1) /* raw pseudoranges available */ +#define USED_IS INTERNAL_SET(2) /* sat-used count available */ +#define DRIVER_IS INTERNAL_SET(3) /* driver type identified */ +#define CLEAR_IS INTERNAL_SET(4) /* starts a reporting cycle */ +#define REPORT_IS INTERNAL_SET(5) /* ends a reporting cycle */ +#define NODATA_IS INTERNAL_SET(6) /* no data read from fd */ +#define PPSTIME_IS INTERNAL_SET(7) /* precision time is available */ +#define PERR_IS INTERNAL_SET(8) /* PDOP set */ +#define PASSTHROUGH_IS INTERNAL_SET(9) /* passthrough mode */ +#define EOF_IS INTERNAL_SET(10) /* synthetic EOF */ #define DATA_IS ~(ONLINE_SET|PACKET_SET|CLEAR_IS|REPORT_IS) typedef /*@unsignedintegraltype@*/ unsigned int driver_mask_t; |