[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH libvirt-java 1/9] Add StorageVol and DomainBlock resize methods



Signed-off-by: Wido den Hollander <wido widodh nl>
---
 src/main/java/org/libvirt/jna/Libvirt.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/libvirt/jna/Libvirt.java b/src/main/java/org/libvirt/jna/Libvirt.java
index e68d9ed..dbd8f6c 100644
--- a/src/main/java/org/libvirt/jna/Libvirt.java
+++ b/src/main/java/org/libvirt/jna/Libvirt.java
@@ -168,6 +168,7 @@ public interface Libvirt extends Library {
     public int virDomainAttachDevice(DomainPointer virDomainPtr, String deviceXML);
     public int virDomainAttachDeviceFlags(DomainPointer virDomainPtr, String deviceXML, int flags);
     public int virDomainBlockStats(DomainPointer virDomainPtr, String path, virDomainBlockStats stats, int size);
+    public int virDomainBlockResize(DomainPointer virDomainPtr, String disk, NativeLong size, int flags);
     public int virDomainCoreDump(DomainPointer virDomainPtr, String to, int flags);
     public int virDomainCreate(DomainPointer virDomainPtr);
     public int virDomainCreateWithFlags(DomainPointer virDomainPtr, int flags);
@@ -313,6 +314,7 @@ public interface Libvirt extends Library {
     public StorageVolPointer virStorageVolLookupByName(StoragePoolPointer storagePoolPtr, String name);
     public StorageVolPointer virStorageVolLookupByPath(ConnectionPointer virConnectPtr, String path);
     public int virStorageVolWipe(StorageVolPointer storageVolPtr, int flags);
+    public int virStorageVolResize(StorageVolPointer storageVolPtr, NativeLong capacity, int flags);
 
     // Interface Methods
     public int virInterfaceCreate(InterfacePointer virDevicePointer);
-- 
1.7.9.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]