|
@@ -174,6 +174,9 @@ void qemu_chr_fe_set_open(CharBackend *be, int fe_open);
|
|
|
void qemu_chr_fe_printf(CharBackend *be, const char *fmt, ...)
|
|
|
GCC_FMT_ATTR(2, 3);
|
|
|
|
|
|
+
|
|
|
+typedef gboolean (*FEWatchFunc)(void *do_not_use, GIOCondition condition, void *data);
|
|
|
+
|
|
|
/**
|
|
|
* qemu_chr_fe_add_watch:
|
|
|
* @cond: the condition to poll for
|
|
@@ -188,10 +191,13 @@ void qemu_chr_fe_printf(CharBackend *be, const char *fmt, ...)
|
|
|
* Note that you are responsible to update the front-end sources if
|
|
|
* you are switching the main context with qemu_chr_fe_set_handlers().
|
|
|
*
|
|
|
+ * Warning: DO NOT use the first callback argument (it may be either
|
|
|
+ * a GIOChannel or a QIOChannel, depending on the underlying chardev)
|
|
|
+ *
|
|
|
* Returns: the source tag
|
|
|
*/
|
|
|
guint qemu_chr_fe_add_watch(CharBackend *be, GIOCondition cond,
|
|
|
- GIOFunc func, void *user_data);
|
|
|
+ FEWatchFunc func, void *user_data);
|
|
|
|
|
|
/**
|
|
|
* qemu_chr_fe_write:
|