X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=aoview%2Faoview.h;h=7824491228a4eb10dfb834961ae2311df1404525;hp=f584045f3a517a06ecac28112fbf77ff41a6c72b;hb=2c780d67b8a22d75a2da4b2af21fd35f0c6f5236;hpb=69616104813fc5ba89fb3128d04fb9328961c59c diff --git a/aoview/aoview.h b/aoview/aoview.h index f584045f..78244912 100644 --- a/aoview/aoview.h +++ b/aoview/aoview.h @@ -73,7 +73,7 @@ struct aostate { void aoview_monitor_disconnect(void); -void +gboolean aoview_monitor_connect(char *tty); struct aoview_serial * @@ -82,9 +82,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);