]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor qemuBuildNetworkDriveURI to take a virStorageSourcePtr
authorPeter Krempa <pkrempa@redhat.com>
Mon, 10 Nov 2014 16:55:26 +0000 (17:55 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Nov 2014 13:37:02 +0000 (14:37 +0100)
commitdc0175f5359d995db955974457f3a00c92ffde35
tree535bcd70713a5ae6bbe79117732f5b712016fa70
parentc264ea58e9a34b7202d8041687621dfa68ad8750
qemu: Refactor qemuBuildNetworkDriveURI to take a virStorageSourcePtr

Instead of splitting out various fields, pass the complete structure and
let the function pick various things of it.

As one of the callers isn't using virStorageSourcePtr to store the data,
this patch adds glue code that fills the data into a dummy
virStorageSourcePtr before calling the func.

This change will help when adding new fields that need output processing
in the future.
src/qemu/qemu_command.c