]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_conf.c: introduce qemuAddRemoveSharedDiskInternal
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 3 Sep 2019 23:06:06 +0000 (20:06 -0300)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Sep 2019 12:52:29 +0000 (14:52 +0200)
commitb80bb2d371ea130de2a2c429fe3893c06249198b
tree73d67a1ae1f940efebfbb472922890109e89b6b6
parentb2de989b9d9ce75206ae4a3542b738e917d3fdfb
qemu_conf.c: introduce qemuAddRemoveSharedDiskInternal

Following the same idea of avoid code repetition from the
previous patch, this commit introduces a new function that
aggregates the functions of qemuAddSharedDisk() and
qemuRemoveSharedDisk() into a single place, using a flag to
switch between add/remove operations.

Both qemuAddSharedDisk() and qemuRemoveSharedDisk() are
public, so keep them around to avoid changing other files
due to an internal qemu_conf.c refactory.

No functional change was made.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_conf.c