Trim aoview_serial_set_callback args down to just port and callback
[fw/altos] / aoview / aoview.h
index 803bd4a538f186a37ac60ce71c3d356bc72d4d21..4ed0ffaba51804005c83fd05a42ba7419c06f137 100644 (file)
@@ -69,7 +69,8 @@ struct aodata {
        int     flight_pres;
        int     ground_pres;
        int     nsat;
-       int     locked;
+       int     gps_locked;
+       int     gps_connected;
        struct {
                int hour;
                int minute;
@@ -122,6 +123,7 @@ struct aostate {
        double  pad_lon_total;
        double  pad_alt_total;
        int     npad;
+       int     prev_npad;
 
        double  distance;
        double  bearing;
@@ -158,9 +160,7 @@ typedef void (*aoview_serial_callback)(gpointer user_data, struct aoview_serial
 
 void
 aoview_serial_set_callback(struct aoview_serial *serial,
-                          aoview_serial_callback func,
-                          gpointer data,
-                          GDestroyNotify notify);
+                          aoview_serial_callback func);
 
 void
 aoview_serial_printf(struct aoview_serial *serial, char *format, ...);