summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-02-04 17:48:52 -0800
committerGary E. Miller <gem@rellim.com>2019-02-04 17:52:50 -0800
commit1b13ce3a6973653309cc402858e0c422842ad8ce (patch)
tree9d9fc37e488232b57dd7988f58f49c79ddc2d4bb /libgps_core.c
parent1fbb25eb2d0267a6267d8a662dfacde5a2f571bc (diff)
downloadgpsd-1b13ce3a6973653309cc402858e0c422842ad8ce.tar.gz
libgps.3: Update gps_read() prototype.
And some related nits.
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 21012df4..bedfa37e 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -147,9 +147,15 @@ int gps_close(struct gps_data_t *gpsdata CONDITIONALLY_UNUSED)
return status;
}
+/* read from a gpsd connection
+ *
+ * parameters:
+ * gps_data_t *gpsdata -- structure for GPS data
+ * char *message -- NULL, or optional buffer for received JSON
+ * int message_len -- zero, or sizeof(message)
+ */
int gps_read(struct gps_data_t *gpsdata CONDITIONALLY_UNUSED,
char *message, int message_len)
-/* read from a gpsd connection */
{
int status = -1;