diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-02-03 11:22:32 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2011-03-21 16:55:11 +0530 |
commit | 6b331efb733a0f913ddc0b7762a1307dec304061 (patch) | |
tree | b029146a089ffdd7cb5c8241dd592172c4ce4354 /hw/virtio.h | |
parent | e0efb993b817564ef84e462ac1fe35f89b57ad7b (diff) | |
download | qemu-6b331efb733a0f913ddc0b7762a1307dec304061.tar.gz qemu-6b331efb733a0f913ddc0b7762a1307dec304061.tar.bz2 qemu-6b331efb733a0f913ddc0b7762a1307dec304061.zip |
virtio-serial: Use a struct to pass config information from proxy
Instead of using a single variable to pass to the virtio_serial_init
function, use a struct so that expanding the number of variables to be
passed on later is easier.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'hw/virtio.h')
-rw-r--r-- | hw/virtio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/virtio.h b/hw/virtio.h index 31d16e1c31..d0920a84c4 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -195,7 +195,8 @@ VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf); struct virtio_net_conf; VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf, struct virtio_net_conf *net); -VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t max_nr_ports); +typedef struct virtio_serial_conf virtio_serial_conf; +VirtIODevice *virtio_serial_init(DeviceState *dev, virtio_serial_conf *serial); VirtIODevice *virtio_balloon_init(DeviceState *dev); #ifdef CONFIG_LINUX VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf); |