summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2023-06-28 14:38:54 +0200
committerSimon Rettberg2023-06-28 14:38:54 +0200
commite69e883d9223ab1ff25052a376fda4d5a40958e9 (patch)
treea6ff4171f031f865e3c0407a70a424346714f38b /src
parent[libvirt] Allow setting PCI address on Device level (diff)
downloadmaster-sync-shared-e69e883d9223ab1ff25052a376fda4d5a40958e9.tar.gz
master-sync-shared-e69e883d9223ab1ff25052a376fda4d5a40958e9.tar.xz
master-sync-shared-e69e883d9223ab1ff25052a376fda4d5a40958e9.zip
[libvirt] Fix build
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java b/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java
index b5332af..7bf13f4 100644
--- a/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java
+++ b/src/main/java/org/openslx/libvirt/domain/device/HostdevUsb.java
@@ -8,8 +8,7 @@ import org.openslx.libvirt.xml.LibvirtXmlNode;
* @author Manuel Bentele
* @version 1.0
*/
-public class HostdevUsb extends Hostdev implements HostdevAddressableSource<HostdevUsbDeviceDescription>,
- HostdevAddressableTarget<HostdevUsbDeviceAddress>
+public class HostdevUsb extends Hostdev implements HostdevAddressableSource<HostdevUsbDeviceDescription>
{
/**
* Creates an empty hostdev USB device.
@@ -51,8 +50,7 @@ public class HostdevUsb extends Hostdev implements HostdevAddressableSource<Host
this.setXmlElementAttributeValue( "source/address/product", "id", productId );
}
- @Override
- public HostdevUsbDeviceAddress getPciTarget()
+ public HostdevUsbDeviceAddress getUsbTarget()
{
final String usbBus = this.getXmlElementAttributeValue( "address", "bus" );
final String usbPort = this.getXmlElementAttributeValue( "address", "port" );
@@ -60,8 +58,7 @@ public class HostdevUsb extends Hostdev implements HostdevAddressableSource<Host
return HostdevUsbDeviceAddress.valueOf( usbBus, usbPort );
}
- @Override
- public void setPciTarget( HostdevUsbDeviceAddress address )
+ public void setUsbTarget( HostdevUsbDeviceAddress address )
{
this.setXmlElementAttributeValue( "address", "bus", Integer.toString( address.getUsbBus() ) );
this.setXmlElementAttributeValue( "address", "port", Integer.toString( address.getUsbPort() ) );