|
@@ -29,14 +29,13 @@
|
|
|
typedef struct {
|
|
|
Chardev parent;
|
|
|
|
|
|
+ bool keep_open; /* console do not close file */
|
|
|
HANDLE file, hrecv, hsend;
|
|
|
OVERLAPPED orecv;
|
|
|
BOOL fpipe;
|
|
|
|
|
|
/* Protected by the Chardev chr_write_lock. */
|
|
|
OVERLAPPED osend;
|
|
|
- /* FIXME: file/console do not finalize */
|
|
|
- bool skip_free;
|
|
|
} WinChardev;
|
|
|
|
|
|
#define NSENDBUF 2048
|
|
@@ -45,7 +44,7 @@ typedef struct {
|
|
|
#define TYPE_CHARDEV_WIN "chardev-win"
|
|
|
#define WIN_CHARDEV(obj) OBJECT_CHECK(WinChardev, (obj), TYPE_CHARDEV_WIN)
|
|
|
|
|
|
-void qemu_chr_open_win_file(Chardev *chr, HANDLE fd_out);
|
|
|
+void win_chr_set_file(Chardev *chr, HANDLE file, bool keep_open);
|
|
|
int win_chr_serial_init(Chardev *chr, const char *filename, Error **errp);
|
|
|
int win_chr_pipe_poll(void *opaque);
|
|
|
|