summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-22 07:34:36 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-22 07:34:36 +0000
commit81c568c70c304662f69407db82fff84501386dc3 (patch)
tree609f1887fda15a2dc8c8f0a173e595ceec75ba85 /gps.h
parentf47d402b83590a4703aa70bb81e9404e4ab59fe3 (diff)
downloadgpsd-81c568c70c304662f69407db82fff84501386dc3.tar.gz
Introduce gps_stream() in the client API...
...and start on a document explaining how to do the protocol transition in client-side code.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index bc9fa0c9..5a566c55 100644
--- a/gps.h
+++ b/gps.h
@@ -960,6 +960,7 @@ extern /*@null@*/ struct gps_data_t *gps_open(const char *host, const char *port
int gps_close(struct gps_data_t *);
int gps_query(struct gps_data_t *gpsdata, const char *fmt, ... );
int gps_poll(struct gps_data_t *gpsdata);
+int gps_stream(struct gps_data_t *gpsdata);
void gps_set_raw_hook(struct gps_data_t *gpsdata, void (*hook)(struct gps_data_t *sentence, char *buf, size_t len, int level));
int gps_set_callback(struct gps_data_t *gpsdata, void (*callback)(struct gps_data_t *sentence, char *buf, size_t len, int level), pthread_t *handler);
int gps_del_callback(struct gps_data_t *gpsdata, pthread_t *handler);