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 /lcdgps.c | |
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 'lcdgps.c')
-rw-r--r-- | lcdgps.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -211,9 +211,7 @@ static void reset_lcd(void) { static enum deg_str_type deg_type = deg_dd; /* This gets called once for each new sentence. */ -static void update_lcd(struct gps_data_t *gpsdata, - char *message UNUSED, - size_t len UNUSED) +static void update_lcd(struct gps_data_t *gpsdata) { char tmpbuf[255]; #ifdef CLIMB @@ -461,7 +459,6 @@ int main(int argc, char *argv[]) reset_lcd(); /* Here's where updates go. */ - gps_set_raw_hook(&gpsdata, update_lcd); gps_stream(&gpsdata, WATCH_ENABLE, NULL); for (;;) { /* heart of the client */ @@ -483,6 +480,7 @@ int main(int argc, char *argv[]) } else if (data) { (void)gps_read(&gpsdata); + update_lcd(&gpsdata); } } |