diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-10-03 10:45:29 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-03 10:45:29 -0400 |
commit | db993006c341f476e80cf7f1aba59081d2947ab3 (patch) | |
tree | 0b8c0a8d324819cd810c8ef4317a91a213e45909 /libgps.h | |
parent | ecf1b666629bd74e4b5e28ec0edd1f787c737476 (diff) | |
download | gpsd-db993006c341f476e80cf7f1aba59081d2947ab3.tar.gz |
First cut at implementing waiting test for shm export.
Timeout argument is presently ignored.
Diffstat (limited to 'libgps.h')
-rw-r--r-- | libgps.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,12 +37,12 @@ extern int gps_sock_stream(struct gps_data_t *, unsigned int, /*@null@*/void *); extern const char /*@observer@*/ *gps_sock_data(const struct gps_data_t *); extern int gps_sock_mainloop(struct gps_data_t *, int, void (*)(struct gps_data_t *)); -extern int gps_shm_mainloop(struct gps_data_t *, int, - void (*)(struct gps_data_t *)); - extern int gps_shm_open(/*@out@*/struct gps_data_t *); extern void gps_shm_close(struct gps_data_t *); +extern bool gps_shm_waiting(const struct gps_data_t *, int); extern int gps_shm_read(struct gps_data_t *); +extern int gps_shm_mainloop(struct gps_data_t *, int, + void (*)(struct gps_data_t *)); extern int gps_dbus_open(struct gps_data_t *); extern int gps_dbus_mainloop(struct gps_data_t *, int, |