diff options
author | Simon Rettberg | 2024-09-19 11:56:48 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-09-19 11:56:48 +0200 |
commit | 31678dce36c9eaa4b3382088e98114bf22c003a9 (patch) | |
tree | cd4947f3b753924d8d72f96061ab7982819a1cbc /src/main/java/org/openslx/libvirt/domain/Domain.java | |
parent | fileserver: Also silence socket timeouts (diff) | |
download | master-sync-shared-31678dce36c9eaa4b3382088e98114bf22c003a9.tar.gz master-sync-shared-31678dce36c9eaa4b3382088e98114bf22c003a9.tar.xz master-sync-shared-31678dce36c9eaa4b3382088e98114bf22c003a9.zip |
[libvirt] Add support for <redirdev> devices
Diffstat (limited to 'src/main/java/org/openslx/libvirt/domain/Domain.java')
-rw-r--r-- | src/main/java/org/openslx/libvirt/domain/Domain.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/Domain.java b/src/main/java/org/openslx/libvirt/domain/Domain.java index af3e63c..b059353 100644 --- a/src/main/java/org/openslx/libvirt/domain/Domain.java +++ b/src/main/java/org/openslx/libvirt/domain/Domain.java @@ -37,6 +37,7 @@ import org.openslx.libvirt.domain.device.Interface; import org.openslx.libvirt.domain.device.InterfaceBridge; import org.openslx.libvirt.domain.device.InterfaceNetwork; import org.openslx.libvirt.domain.device.Parallel; +import org.openslx.libvirt.domain.device.RedirDevice; import org.openslx.libvirt.domain.device.Serial; import org.openslx.libvirt.domain.device.Shmem; import org.openslx.libvirt.domain.device.Sound; @@ -1269,6 +1270,11 @@ public class Domain extends LibvirtXmlDocument return Domain.filterDevices( Video.class, this.getDevices() ); } + public ArrayList<RedirDevice> getRedirectDevices() + { + return Domain.filterDevices( RedirDevice.class, this.getDevices() ); + } + /** * Returns the values of QEMU command line arguments from the Libvirt domain XML document. * |