diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-08 12:34:47 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-08 12:34:47 -0400 |
commit | 6341c04b33fe4a957c4d8dae540659fe02c4d7d3 (patch) | |
tree | 0839971fee9305cb6aba4e1b6e62fa4920b5b44a /gpsd.h-tail | |
parent | 614393328dddd234804378bbb59c6cda7caff20e (diff) | |
download | gpsd-6341c04b33fe4a957c4d8dae540659fe02c4d7d3.tar.gz |
Move some refactored code out of its original context.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index ef5fafa2..d79a1ad8 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -823,6 +823,14 @@ extern int gpsd_open(struct gps_device_t *); extern int gpsd_activate(struct gps_device_t *); extern void gpsd_deactivate(struct gps_device_t *); extern gps_mask_t gpsd_poll(struct gps_device_t *); +#define DEVICE_ERROR -2 +#define DEVICE_UNREADY -1 +#define DEVICE_READY 1 +#define DEVICE_UNCHANGED 0 +extern int gpsd_multipoll(const bool, + struct gps_device_t *, + void (*)(struct gps_device_t *, gps_mask_t), + float reawake_time); extern void gpsd_wrap(struct gps_device_t *); extern bool gpsd_add_device(const char *device_name, bool flag_nowait); extern /*@observer@*/const char *gpsd_maskdump(gps_mask_t); |