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 | f69fa2054d8bec87f9ccddfc1b721dadaadbb1ca (patch) | |
tree | b029146a089ffdd7cb5c8241dd592172c4ce4354 /hw/virtio.h | |
parent | a5e7dd5904492f4faa4195024fc5b9cbad483926 (diff) | |
download | qemu-f69fa2054d8bec87f9ccddfc1b721dadaadbb1ca.tar.gz qemu-f69fa2054d8bec87f9ccddfc1b721dadaadbb1ca.tar.bz2 qemu-f69fa2054d8bec87f9ccddfc1b721dadaadbb1ca.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); |