diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-27 22:10:40 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-27 22:10:40 -0400 |
commit | 13519fc5b89dedb5707ab820c513428b368e1ec1 (patch) | |
tree | e9e3575c6e1a4a57859c085edf7e2ee2b1bc113a /libgps_core.c | |
parent | 7800222b3ddb462a6ab92f0f1950abf78eabf10b (diff) | |
download | gpsd-13519fc5b89dedb5707ab820c513428b368e1ec1.tar.gz |
Get back to a state where the shm export works.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libgps_core.c b/libgps_core.c index 273b3fe2..6ea9f976 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -173,32 +173,6 @@ int gps_stream(struct gps_data_t *gpsdata CONDITIONALLY_UNUSED, return status; } -int gps_mainloop(struct gps_data_t *gpsdata, int timeout, - int (*hook)(struct gps_data_t *gpsdata, bool)) -/* run a socket main loop with a specified handler */ -{ - int status; - - libgps_debug_trace((DEBUG_CALLS, "gps_mainloop() begins\n")); - - /*@ -usedef -compdef -uniondef @*/ -#ifdef SHM_EXPORT_ENABLE - if ((intptr_t)(gpsdata->gps_fd) == -1) { - status = gps_shm_mainloop(gpsdata, timeout, hook); - } -#endif /* SHM_EXPORT_ENABLE */ - -#ifdef SOCKET_EXPORT_ENABLE - if (status == -1) { - status = gps_sock_mainloop(gpsdata, timeout, hook); - } -#endif /* SOCKET_EXPORT_ENABLE */ - /*@ +usedef +compdef +uniondef @*/ - - libgps_debug_trace((DEBUG_CALLS, "gps_mainloop() -> %d\n")); - return status; -} - const char /*@observer@*/ *gps_data(const struct gps_data_t *gpsdata CONDITIONALLY_UNUSED) /* return the contents of the client data buffer */ { |