summaryrefslogtreecommitdiff
path: root/man
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 /man
parent1fbb25eb2d0267a6267d8a662dfacde5a2f571bc (diff)
downloadgpsd-1b13ce3a6973653309cc402858e0c422842ad8ce.tar.gz
libgps.3: Update gps_read() prototype.
And some related nits.
Diffstat (limited to 'man')
-rw-r--r--man/libgps.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/man/libgps.xml b/man/libgps.xml
index 7e850c3d..7cb30dee 100644
--- a/man/libgps.xml
+++ b/man/libgps.xml
@@ -6,9 +6,9 @@ SPDX-License-Identifier: BSD-2-clause
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry>
-<refentryinfo><date>14 Aug 2004</date></refentryinfo>
+<refentryinfo><date>4 Feb 2019</date></refentryinfo>
<refmeta>
-<refentrytitle>3</refentrytitle>
+<refentrytitle>libgps</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo class="source">The GPSD Project</refmiscinfo>
<refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
@@ -29,7 +29,7 @@ C:
<funcprototype>
<funcdef>int <function>gps_open</function></funcdef>
<paramdef>char *<parameter>server</parameter></paramdef>
- <paramdef>char * <parameter>port</parameter></paramdef>
+ <paramdef>char *<parameter>port</parameter></paramdef>
<paramdef>struct gps_data_t *<parameter>gpsdata</parameter></paramdef>
</funcprototype>
<funcprototype>
@@ -40,6 +40,8 @@ C:
<funcprototype>
<funcdef>int <function>gps_read</function></funcdef>
<paramdef>struct gps_data_t *<parameter>gpsdata</parameter></paramdef>
+ <paramdef>char *<parameter>message</parameter></paramdef>
+ <paramdef>int <parameter>message_size</parameter></paramdef>
</funcprototype>
<funcprototype>
<funcdef>bool <function>gps_waiting</function></funcdef>
@@ -313,9 +315,9 @@ libgps interface code from
(void) gps_stream(&amp;gps_data, WATCH_ENABLE | WATCH_JSON, NULL);
/* Put this in a loop with a call to a high resolution sleep () in it. */
- if (gps_waiting (&amp;gps_data, 500)) {
+ if (gps_waiting(&amp;gps_data, 500)) {
errno = 0;
- if (gps_read (&amp;gps_data) == -1) {
+ if (gps_read(&amp;gps_data, NULL, 0) == -1) {
...
} else {
/* Display data from the GPS receiver. */