diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 05:20:07 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 05:20:07 -0400 |
commit | e88b9f8d24d1a816f0b59977d6807abba18763f6 (patch) | |
tree | aec204c4617280b0bc2e1ec55dd759af2f2af64b /libgps.h | |
parent | a6bda11c404fb7ffed0b79e9bc09a844588bb1e1 (diff) | |
download | gpsd-e88b9f8d24d1a816f0b59977d6807abba18763f6.tar.gz |
Canned mainloop function for socket export...
...also, dispatch to open for the DBUS transport.
Diffstat (limited to 'libgps.h')
-rw-r--r-- | libgps.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,9 +32,9 @@ extern int gps_sock_read(/*@out@*/struct gps_data_t *); 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, +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 timeout, +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 *); @@ -42,7 +42,7 @@ extern void gps_shm_close(struct gps_data_t *); extern int gps_shm_read(struct gps_data_t *); extern int gps_dbus_open(struct gps_data_t *); -extern int gps_dbus_mainloop(struct gps_data_t *, int timeout, +extern int gps_dbus_mainloop(struct gps_data_t *, int, void (*)(struct gps_data_t *)); |