aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-25 17:18:27 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-06-25 17:18:27 +0000
commita18e524af0c23b083dc69f9a2eed563893d01f22 (patch)
treefbafaaf82a481fee0300a98194f5fa4d1369c76a /vl.h
parente15d737181c9e7da2274ca62a3f4f28b7a5cbeb7 (diff)
multiple wait object support for win32 (kazu)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2013 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 3312451579..3cc4621bc5 100644
--- a/vl.h
+++ b/vl.h
@@ -47,6 +47,7 @@
#endif
#ifdef _WIN32
+#include <windows.h>
#define fsync _commit
#define lseek _lseeki64
#define ENOTSUP 4096
@@ -221,6 +222,14 @@ typedef int PollingFunc(void *opaque);
int qemu_add_polling_cb(PollingFunc *func, void *opaque);
void qemu_del_polling_cb(PollingFunc *func, void *opaque);
+#ifdef _WIN32
+/* Wait objects handling */
+typedef void WaitObjectFunc(void *opaque);
+
+int qemu_add_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque);
+void qemu_del_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque);
+#endif
+
/* character device */
#define CHR_EVENT_BREAK 0 /* serial break char */