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

[libvirt] [PATCH libvirt-java 2/2] Add flags to StoragePoolRefresh



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

diff --git a/src/main/java/org/libvirt/StoragePool.java b/src/main/java/org/libvirt/StoragePool.java
index 4c8492b..249b531 100644
--- a/src/main/java/org/libvirt/StoragePool.java
+++ b/src/main/java/org/libvirt/StoragePool.java
@@ -306,7 +306,7 @@ public class StoragePool {
      * @throws LibvirtException
      */
     public void refresh(int flags) throws LibvirtException {
-        libvirt.virStoragePoolRefresh(VSPP);
+        libvirt.virStoragePoolRefresh(VSPP, flags);
         processError();
     }
 
diff --git a/src/main/java/org/libvirt/jna/Libvirt.java b/src/main/java/org/libvirt/jna/Libvirt.java
index f53199d..597767d 100644
--- a/src/main/java/org/libvirt/jna/Libvirt.java
+++ b/src/main/java/org/libvirt/jna/Libvirt.java
@@ -290,7 +290,7 @@ public interface Libvirt extends Library {
     public StoragePoolPointer virStoragePoolLookupByUUIDString(ConnectionPointer virConnectPtr, String uuidstr);
     public StoragePoolPointer virStoragePoolLookupByVolume(StorageVolPointer storageVolPtr);
     public int virStoragePoolNumOfVolumes(StoragePoolPointer storagePoolPtr);
-    public int virStoragePoolRefresh(StoragePoolPointer storagePoolPtr);
+    public int virStoragePoolRefresh(StoragePoolPointer storagePoolPtr, int flags);
     public int virStoragePoolSetAutostart(StoragePoolPointer storagePoolPtr, int autostart);
     public int virStoragePoolUndefine(StoragePoolPointer storagePoolPtr);
 
-- 
1.7.9.5


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