diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-25 13:32:06 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-25 13:32:06 -0500 |
commit | 5f4a2717737a4c8c5a94ca70f47893db83a7cc30 (patch) | |
tree | 0ee988275f485af925468e5640bc9c0e506bb526 /libgps.xml | |
parent | e1b64326fdd3037c5a380e9e85e549350bb4bde5 (diff) | |
download | gpsd-5f4a2717737a4c8c5a94ca70f47893db83a7cc30.tar.gz |
The raw_hook mwember and set_raw_hook are gone; client API cleanup is done.
Diffstat (limited to 'libgps.xml')
-rw-r--r-- | libgps.xml | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -38,12 +38,6 @@ C: <paramdef>char *<parameter>fmt</parameter>...</paramdef> </funcprototype> <funcprototype> -<funcdef>void <function>gps_set_raw_hook</function></funcdef> - <paramdef>struct gps_data_t *<parameter>gpsdata</parameter></paramdef> - <paramdef>void (*<parameter>hook</parameter>)(struct gps_data_t *, - char *buf, size_t len)</paramdef> -</funcprototype> -<funcprototype> <funcdef>int <function>gps_read</function></funcdef> <paramdef>struct gps_data_t *<parameter>gpsdata</parameter></paramdef> </funcprototype> @@ -73,8 +67,6 @@ import gps session = gps.gps(host="localhost", port="2947") -session.set_raw_hook(raw_hook) - session.stream(flags=WATCH_JSON) for report in session: @@ -231,13 +223,6 @@ immediately with a value of 0 if there is no input waiting.</para> </varlistentry> </variablelist> -<para><function>gps_set_raw_hook()</function> takes a function you -specify and run it (synchronously) on the raw data pulled by a -<function>gps_query()</function> or <function>gps_read()</function> -call. The arguments passed to this hook will be a pointer to a -structure containing parsed data, and a buffer containining the -raw <application>gpsd</application> response.</para> - <para><function>gps_errstr()</function> returns an ASCII string (in English) describing the error indicated by a nonzero return value from <function>gps_open()</function>.</para> @@ -272,8 +257,6 @@ code that calls gps_poll(gpsdata). build_gui(toplevel); - gps_set_raw_hook(gpsdata, update_panel); - (void)gps_stream(gpsdata, WATCH_ENABLE, NULL); (void)XtAppAddInput(app, gpsdata->gps_fd, |