]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: refactor virFileNBDDeviceAssociate
authorPavel Hrdina <phrdina@redhat.com>
Wed, 6 Jan 2021 12:02:38 +0000 (13:02 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 6 Jan 2021 12:15:17 +0000 (13:15 +0100)
commite1894cf4905360ccc19a4331ea0ccdcec561e6ef
tree7a162059046f136c6e303553f5b3ebebd491a0ff
parentb2b1702341f53bb369df11a1e197fb4e99cfb1c3
virfile: refactor virFileNBDDeviceAssociate

The only reason why virstoragefile.h needs to be included in virfile.h
is that virFileNBDDeviceAssociate() takes virStorageFileFormat argument.
The function doesn't need the enum value as it converts the value to
string and uses only that.

Change the argument to string which will allow us to remove that
include.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/lxc/lxc_controller.c
src/util/virfile.c
src/util/virfile.h