diff options
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1727,6 +1727,8 @@ extern int gps_read(/*@out@*/struct gps_data_t *); extern int gps_unpack(char *, struct gps_data_t *); extern bool gps_waiting(const struct gps_data_t *, int); extern int gps_stream(struct gps_data_t *, unsigned int, /*@null@*/void *); +extern int gps_mainloop(struct gps_data_t *, int timeout, + int (*)(struct gps_data_t *, bool)); extern const char /*@observer@*/ *gps_data(const struct gps_data_t *); extern const char /*@observer@*/ *gps_errstr(const int); @@ -1739,15 +1741,18 @@ extern bool gps_sock_waiting(const struct gps_data_t *, int); 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 timeout, - void (*)(struct gps_data_t *)); + int (*)(struct gps_data_t *, bool)); extern int gps_shm_open(/*@out@*/struct gps_data_t *); extern void gps_shm_close(struct gps_data_t *); extern int gps_shm_read(struct gps_data_t *); +extern int gps_shm_mainloop(struct gps_data_t *, int timeout, + int (*)(struct gps_data_t *, bool)); extern int gps_dbus_open(struct gps_data_t *); +extern bool gps_shm_waiting(const struct gps_data_t *, int); extern int gps_dbus_mainloop(struct gps_data_t *, int timeout, - void (*)(struct gps_data_t *)); + int (*)(struct gps_data_t *, bool)); /* dependencies on struct gpsdata_t end hrere */ |