Ignore aoview_glade.h
[fw/altos] / aoview / aoview.h
index f584045f3a517a06ecac28112fbf77ff41a6c72b..4abbde88839ca0c8bdd4420dc3ff0c62824b9cde 100644 (file)
@@ -58,6 +58,11 @@ struct aostate {
        int     batt;
        int     drogue;
        int     main;
+       int     flight_accel;
+       int     ground_accel;
+       int     flight_vel;
+       int     flight_pres;
+       int     ground_pres;
        int     nsat;
        int     locked;
        struct {
@@ -73,7 +78,7 @@ struct aostate {
 void
 aoview_monitor_disconnect(void);
 
-void
+gboolean
 aoview_monitor_connect(char *tty);
 
 struct aoview_serial *
@@ -82,9 +87,11 @@ aoview_serial_open(const char *tty);
 void
 aoview_serial_close(struct aoview_serial *serial);
 
+typedef void (*aoview_serial_callback)(gpointer user_data, struct aoview_serial *serial, gint revents);
+
 void
 aoview_serial_set_callback(struct aoview_serial *serial,
-                          GSourceFunc func,
+                          aoview_serial_callback func,
                           gpointer data,
                           GDestroyNotify notify);