aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-05 22:01:59 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-05 22:01:59 +0000
commit86e94dea5b740dad65446c857f6959eae43e0ba6 (patch)
tree7870bef3144c93a02c99751d7653d8492c1f2282 /vl.h
parent8f28f3fbbe1116c5f4f11ebf4167a770032e2606 (diff)
downloadqemu-86e94dea5b740dad65446c857f6959eae43e0ba6.zip
qemu-86e94dea5b740dad65446c857f6959eae43e0ba6.tar.gz
qemu-86e94dea5b740dad65446c857f6959eae43e0ba6.tar.bz2
Reinitialize monitor upon reconnect, by Anthony Liguori.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2300 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/vl.h b/vl.h
index 1c58406..8eef56d 100644
--- a/vl.h
+++ b/vl.h
@@ -260,11 +260,13 @@ int qemu_add_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque);
void qemu_del_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque);
#endif
+typedef struct QEMUBH QEMUBH;
+
/* character device */
#define CHR_EVENT_BREAK 0 /* serial break char */
#define CHR_EVENT_FOCUS 1 /* focus to this terminal (modal input needed) */
-
+#define CHR_EVENT_RESET 2 /* new connection established */
#define CHR_IOCTL_SERIAL_SET_PARAMS 1
@@ -295,6 +297,7 @@ typedef struct CharDriverState {
void (*chr_send_event)(struct CharDriverState *chr, int event);
void (*chr_close)(struct CharDriverState *chr);
void *opaque;
+ QEMUBH *bh;
} CharDriverState;
void qemu_chr_printf(CharDriverState *s, const char *fmt, ...);
@@ -305,6 +308,7 @@ void qemu_chr_add_read_handler(CharDriverState *s,
IOReadHandler *fd_read, void *opaque);
void qemu_chr_add_event_handler(CharDriverState *s, IOEventHandler *chr_event);
int qemu_chr_ioctl(CharDriverState *s, int cmd, void *arg);
+void qemu_chr_reset(CharDriverState *s);
/* consoles */
@@ -513,7 +517,6 @@ void do_delvm(const char *name);
void do_info_snapshots(void);
/* bottom halves */
-typedef struct QEMUBH QEMUBH;
typedef void QEMUBHFunc(void *opaque);
QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque);