From db993006c341f476e80cf7f1aba59081d2947ab3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 3 Oct 2011 10:45:29 -0400 Subject: First cut at implementing waiting test for shm export. Timeout argument is presently ignored. --- libgps.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libgps.h') diff --git a/libgps.h b/libgps.h index 5901ea89..cc5b5e70 100644 --- a/libgps.h +++ b/libgps.h @@ -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, -- cgit v1.2.1