summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-10 11:13:25 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-10 11:13:25 -0400
commit80a642256b0f265305b8403ce056047e8914b6a7 (patch)
treeda7382c5f9751c15bea9a6544b2b5a9e34330b1f /gpsd.h-tail
parentc0bc5b8eb45725ed7806a9b2a2ac3216c4e3d43d (diff)
downloadgpsd-80a642256b0f265305b8403ce056047e8914b6a7.tar.gz
Handle error returns from gpsd_await_data() a bit more gracefully.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 7b1804fc..a866f69f 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -826,7 +826,11 @@ extern int gpsd_open(struct gps_device_t *);
#define O_OPTIMIZE 2
extern int gpsd_activate(struct gps_device_t *, const int);
extern void gpsd_deactivate(struct gps_device_t *);
-extern bool gpsd_await_data(/*@out@*/fd_set *,
+
+#define AWAIT_GOT_INPUT 1
+#define AWAIT_NOT_READY 0
+#define AWAIT_FAILED -1
+extern int gpsd_await_data(/*@out@*/fd_set *,
const int,
/*@in@*/fd_set *,
const int);