summary refs log tree commit diff stats
path: root/hw/virtio-serial.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-03-26 11:08:01 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-03-27 10:26:50 -0500
commitb2c1394af13b46a72cd27ff580cdd1d9bb1e8934 (patch)
tree89fa1cf29ab6b2314ead07a9ae9ea4da30b8bf18 /hw/virtio-serial.h
parenta59bcd31c91397f8c67b6902e7716d626c5070e6 (diff)
downloadfocaccia-qemu-b2c1394af13b46a72cd27ff580cdd1d9bb1e8934.tar.gz
focaccia-qemu-b2c1394af13b46a72cd27ff580cdd1d9bb1e8934.zip
virtio-serial: Consolidate guest_open/guest_close into set_guest_connected
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1364292483-16564-10-git-send-email-hdegoede@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to '')
-rw-r--r--hw/virtio-serial.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/virtio-serial.h b/hw/virtio-serial.h
index 484dcfef2c..516400f22d 100644
--- a/hw/virtio-serial.h
+++ b/hw/virtio-serial.h
@@ -92,10 +92,8 @@ typedef struct VirtIOSerialPortClass {
     int (*exit)(VirtIOSerialPort *port);
 
     /* Callbacks for guest events */
-        /* Guest opened device. */
-    void (*guest_open)(VirtIOSerialPort *port);
-        /* Guest closed device. */
-    void (*guest_close)(VirtIOSerialPort *port);
+        /* Guest opened/closed device. */
+    void (*set_guest_connected)(VirtIOSerialPort *port, int guest_connected);
 
         /* Guest is now ready to accept data (virtqueues set up). */
     void (*guest_ready)(VirtIOSerialPort *port);