Revision a43f9c90 hw/virtio-serial.h

b/hw/virtio-serial.h
62 62
typedef struct VirtIOSerialPort VirtIOSerialPort;
63 63
typedef struct VirtIOSerialPortInfo VirtIOSerialPortInfo;
64 64

  
65
typedef struct VirtIOSerialDevice {
66
    DeviceState qdev;
67
    VirtIOSerialPortInfo *info;
68
} VirtIOSerialDevice;
69

  
70 65
/*
71 66
 * This is the state that's shared between all the ports.  Some of the
72 67
 * state is configurable via command-line options. Some of it can be
......
136 131
     * The per-port (or per-app) init function that's called when a
137 132
     * new device is found on the bus.
138 133
     */
139
    int (*init)(VirtIOSerialDevice *dev);
134
    int (*init)(VirtIOSerialPort *port);
140 135
    /*
141 136
     * Per-port exit function that's called when a port gets
142 137
     * hot-unplugged or removed.
143 138
     */
144
    int (*exit)(VirtIOSerialDevice *dev);
139
    int (*exit)(VirtIOSerialPort *port);
145 140

  
146 141
    /* Callbacks for guest events */
147 142
        /* Guest opened device. */

Also available in: Unified diff