diff options
Diffstat (limited to 'aoview/aoview.h')
-rw-r--r-- | aoview/aoview.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); |