summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/libvirt/domain/Domain.java
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-19 11:56:48 +0200
committerSimon Rettberg2024-09-19 11:56:48 +0200
commit31678dce36c9eaa4b3382088e98114bf22c003a9 (patch)
treecd4947f3b753924d8d72f96061ab7982819a1cbc /src/main/java/org/openslx/libvirt/domain/Domain.java
parentfileserver: Also silence socket timeouts (diff)
downloadmaster-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.java6
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.
*