diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-22 21:54:06 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-22 21:54:06 +0000 |
commit | 894add2589562cf783f444ca7e83943045ffae43 (patch) | |
tree | 4918891d9e81d255e3349538ec8848754a7358f5 /libgps.xml | |
parent | 0d626154f000d430f7434657e4001fd41969ae23 (diff) | |
download | gpsd-894add2589562cf783f444ca7e83943045ffae43.tar.gz |
Add flags argument to gps_stream().
Document how to translate old-protocol commands to new ones.
Diffstat (limited to 'libgps.xml')
-rw-r--r-- | libgps.xml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -64,6 +64,7 @@ C: <funcprototype> <funcdef>int <function>gps_stream</function></funcdef> <paramdef>struct gps_data_t *<parameter>gpsdata</parameter></paramdef> + <paramdef>unsigned int<parameter>flags</parameter></paramdef> </funcprototype> <funcsynopsisinfo> @@ -149,7 +150,10 @@ to be made available whenn you poll. It is preferable to the older-style (pre-2.39) way of doing this, <function>gps_query()</function> with a "w+" argument, because it insulates your code from whether your client library and your -<application>gpsd</application> are using old or new protocol.</para> +<application>gpsd</application> are using old or new protocol. +The second argument is a flag mask that sets various policy bits; +see gps.h for description. Calling <function>gps_stream()</function> +more than once with different flag masks is allowed. </para> <para><function>gps_set_raw_hook()</function> takes a function you specify and run it (synchronously) on the raw data pulled by a |