qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu-snapshot-2004-10-27_23


From: Filip Navara
Subject: Re: [Qemu-devel] qemu-snapshot-2004-10-27_23
Date: Thu, 28 Oct 2004 20:46:05 +0200
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

André Braga wrote:

On Thu, 28 Oct 2004 17:53:56 +0200, Filip Navara <address@hidden> wrote:
"-monitor stdio" isn't supported on Win32. (It's not hard to add support
for it. I've done that myself in my local tree, but it's not clean
enough to make a patch out of it.)
Care to share? ^_^
I'm not sure I separated it from other changes correctly... Anyway, the patch is attached.

Regards,
Filip
--- vl.c        Sat Oct  9 20:08:01 2004
+++ vl.c        Mon Oct 11 20:37:58 2004
@@ -1016,8 +1017,6 @@
     return chr;
 }
 
-#ifndef _WIN32
-
 typedef struct {
     int fd_in, fd_out;
     /* for nographic stdio only */
@@ -1094,6 +1093,8 @@
     return chr;
 }
 
+#ifndef _WIN32
+
 /* for STDIO, we handle the case where several clients use it
    (nographic mode) */
 
@@ -1273,6 +1274,11 @@
 
 #endif /* !defined(_WIN32) */
 
+CharDriverState *qemu_chr_open_stdio(void)
+{
+    return qemu_chr_open_fd(0, 1);
+}
+
 CharDriverState *qemu_chr_open(const char *filename)
 {
     if (!strcmp(filename, "vc")) {
@@ -1283,10 +1289,11 @@
 #ifndef _WIN32
     if (!strcmp(filename, "pty")) {
         return qemu_chr_open_pty();
-    } else if (!strcmp(filename, "stdio")) {
+    } else
+#endif
+    if (!strcmp(filename, "stdio")) {
         return qemu_chr_open_stdio();
     } else 
-#endif
     {
         return NULL;
     }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]