]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDeviceIsUSB: Handle all USB devices and simplify the code
authorPeter Krempa <pkrempa@redhat.com>
Wed, 3 Apr 2024 10:13:55 +0000 (12:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 24 Apr 2024 12:29:41 +0000 (14:29 +0200)
commit83c5072e2ddd25082a3e4bfe1ec40079adc58506
treebac67c7548f5e00b57a0200dfc67f8bb6f79f5a2
parent450493e0dd6ac7950a17e2e8899b2aaebaebbaf8
virDomainDeviceIsUSB: Handle all USB devices and simplify the code

Rework 'virDomainUSBDeviceDefForeach' to use virDomainDeviceInfoIterate
instead of open-coding all iterators. To achieve this
'virDomainDeviceIsUSB' needs to be fixed as it didn't properly handle
'sound', 'fs', 'chr', 'ccid', and 'net' usb devices.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/conf/domain_conf.c