aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-12 20:21:17 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-12 20:21:17 +0000
commitf331110f3539ee590b3a856d157f92fb34a88bce (patch)
treeadbc6c274374555e5ed1b0d58d3d6364752b9f81 /vl.h
parent1236cab73dc7531154f195bb5905d783e3c0487a (diff)
win32 serial port support (initial patch by kazu
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1807 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vl.h b/vl.h
index 4f118fbfa6..9b09fa4f9d 100644
--- a/vl.h
+++ b/vl.h
@@ -204,6 +204,14 @@ int qemu_set_fd_handler(int fd,
IOHandler *fd_write,
void *opaque);
+/* Polling handling */
+
+/* return TRUE if no sleep should be done afterwards */
+typedef int PollingFunc(void *opaque);
+
+int qemu_add_polling_cb(PollingFunc *func, void *opaque);
+void qemu_del_polling_cb(PollingFunc *func, void *opaque);
+
/* character device */
#define CHR_EVENT_BREAK 0 /* serial break char */
@@ -237,6 +245,7 @@ typedef struct CharDriverState {
int (*chr_ioctl)(struct CharDriverState *s, int cmd, void *arg);
IOEventHandler *chr_event;
void (*chr_send_event)(struct CharDriverState *chr, int event);
+ void (*chr_close)(struct CharDriverState *chr);
void *opaque;
} CharDriverState;