]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virVBoxSnapshotConfGet(RW|RO)DisksPathsFromLibvirtXML: Refactor
authorPeter Krempa <pkrempa@redhat.com>
Thu, 22 Sep 2022 13:26:13 +0000 (15:26 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 6 Oct 2022 08:54:24 +0000 (10:54 +0200)
commit3761a6762515f9f4ca0b2d145909ea87cf5f7461
treed5fc7777c97a1cd51127fb08c85ef65428affc79
parent366cb6d35a9eb11c23319b4ad6151f3549e4f52b
virVBoxSnapshotConfGet(RW|RO)DisksPathsFromLibvirtXML: Refactor

virVBoxSnapshotConfGetRWDisksPathsFromLibvirtXML and
virVBoxSnapshotConfGetRODisksPathsFromLibvirtXML were doing the same
thing, except for one XPath query.

Factor out the common code into a helper and bring it up to modern
standard.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/vbox/vbox_snapshot_conf.c