diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 01:33:31 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 01:33:31 -0400 |
commit | a6215294142785ee892959da35d1ff8294fe2802 (patch) | |
tree | 897bc670404dc0dc6f801d3e1fee69301f125887 /libgps.h | |
parent | 6b0650169ade1c34425fec5a9605a0b651b3b0b4 (diff) | |
download | gpsd-a6215294142785ee892959da35d1ff8294fe2802.tar.gz |
Break out prototypes for client library export methgods into a new heasder.
All regression tests pass. All three exports work in gpxlogger.
Diffstat (limited to 'libgps.h')
-rw-r--r-- | libgps.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libgps.h b/libgps.h new file mode 100644 index 00000000..f571efa8 --- /dev/null +++ b/libgps.h @@ -0,0 +1,31 @@ +/* libgps.h -- prototypes for internals of the libgps library */ +/* + * This file is Copyright (c) 2010 by the GPSD project + * BSD terms apply: see the file COPYING in the distribution root for details. + */ +#ifndef _GPSD_LIBGPS_H_ +#define _GPSD_LIBGPS_H_ + +extern int gps_sock_open(/*@null@*/const char *, /*@null@*/const char *, + /*@out@*/struct gps_data_t *); +extern int gps_sock_close(struct gps_data_t *); +extern int gps_sock_send(struct gps_data_t *, const char *); +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, + void (*)(struct gps_data_t *)); +extern int gps_shm_mainloop(struct gps_data_t *, int timeout, + 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 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, + void (*)(struct gps_data_t *)); + + +#endif /* _GPSD_LIBGPS_H_ */ |