projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle disappearing serial devices
[fw/altos]
/
aoview
/
aoview.h
diff --git
a/aoview/aoview.h
b/aoview/aoview.h
index f584045f3a517a06ecac28112fbf77ff41a6c72b..7824491228a4eb10dfb834961ae2311df1404525 100644
(file)
--- a/
aoview/aoview.h
+++ b/
aoview/aoview.h
@@
-73,7
+73,7
@@
struct aostate {
void
aoview_monitor_disconnect(void);
void
aoview_monitor_disconnect(void);
-void
+gboolean
aoview_monitor_connect(char *tty);
struct aoview_serial *
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);
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,
void
aoview_serial_set_callback(struct aoview_serial *serial,
-
GSourceFunc
func,
+
aoview_serial_callback
func,
gpointer data,
GDestroyNotify notify);
gpointer data,
GDestroyNotify notify);