diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-08-29 19:49:36 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-08-29 19:49:36 +0000 |
commit | 344748ed378e0bfd5bf3eb17dd2068743939a569 (patch) | |
tree | c5ef9542f45f50e2076b55d0fa3a63c68f61f20b /gps.h | |
parent | cefd6221f9aab06395a003bbea9f838a6c286af0 (diff) | |
download | gpsd-344748ed378e0bfd5bf3eb17dd2068743939a569.tar.gz |
libgps.a interface change, everything goes in a malloced struct now.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 */ |