]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domainjob: remove dependency on `qemuDomainDiskPrivatePtr`
authorPrathamesh Chavan <pc44800@gmail.com>
Mon, 17 Aug 2020 05:07:21 +0000 (10:37 +0530)
committerErik Skultety <eskultet@redhat.com>
Wed, 19 Aug 2020 07:31:27 +0000 (09:31 +0200)
commitb3204e820fb4a4f68e6e79089007049107131640
treeeee5aaefabeebcb1e6a588b8480b04a7c876ff21
parent1ca15137dac970b6c79cbd94347118942aaf2e16
qemu_domainjob: remove dependency on `qemuDomainDiskPrivatePtr`

Both parsing and formatting of NBD migration jobs is QEMU specific and
since we're trying to create a hypervisor-agnostic module out of
qemu_domainjob.c, move the NBD XML handling bits to the qemu_domain
module instead. Additionally, move the respective NBD XML calls to
the 'parseJob'/'formatJob' callbacks of the
qemuDomainObjPrivateJobCallbacks structure.

Signed-off-by: Prathamesh Chavan <pc44800@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domainjob.c
src/qemu/qemu_domainjob.h