summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-08-29 19:49:36 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-08-29 19:49:36 +0000
commit344748ed378e0bfd5bf3eb17dd2068743939a569 (patch)
treec5ef9542f45f50e2076b55d0fa3a63c68f61f20b /gps.h
parentcefd6221f9aab06395a003bbea9f838a6c286af0 (diff)
downloadgpsd-344748ed378e0bfd5bf3eb17dd2068743939a569.tar.gz
libgps.a interface change, everything goes in a malloced struct now.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gps.h b/gps.h
index 5f8bdbb5..ae9af9b2 100644
--- a/gps.h
+++ b/gps.h
@@ -100,13 +100,15 @@ struct gps_data_t {
struct life_t signal_quality_stamp;
#endif /* PROCESS_PRWIZCH */
+ /* these members are private */
+ int gps_fd; /* socket or file descriptor to GPS */
void (*raw_hook)(char *buf); /* raw-mode hook for GPS data */
};
-int gps_open(struct gps_data_t *gpsdata, char *host, char *port);
-int gps_close(int fd);
-int gps_query(int fd, struct gps_data_t *gpsdata, char *requests);
-int gps_poll(int fd, struct gps_data_t *gpsdata);
+struct gps_data_t *gps_open(char *host, char *port);
+int gps_close(struct gps_data_t *);
+int gps_query(struct gps_data_t *gpsdata, char *requests);
+int gps_poll(struct gps_data_t *gpsdata);
void gps_set_raw_hook(struct gps_data_t *gpsdata, void (*hook)(char *buf));
/* gps_open() error return values */