---
src/org/libvirt/Connect.java | 9 +++++++--
src/org/libvirt/ConnectAuth.java | 2 +-
src/org/libvirt/jna/Libvirt.java | 2 +-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/org/libvirt/Connect.java b/src/org/libvirt/Connect.java
index 900f6fc..5041611 100644
--- a/src/org/libvirt/Connect.java
+++ b/src/org/libvirt/Connect.java
@@ -78,6 +78,7 @@ public class Connect {
}
// Check for an error
processError() ;
+ ErrorHandler.processError(Libvirt.INSTANCE) ;
}
/**
@@ -102,7 +103,9 @@ public class Connect {
}
VCP = libvirt.virConnectOpenAuth(uri, vAuth, flags) ;
- processError() ;
+ // Check for an error
+ processError() ;
+ ErrorHandler.processError(Libvirt.INSTANCE) ;
}
/**
@@ -114,7 +117,9 @@ public class Connect {
*/
public Connect(String uri) throws LibvirtException {
VCP = libvirt.virConnectOpen(uri) ;
- processError() ;
+ // Check for an error
+ processError() ;
+ ErrorHandler.processError(Libvirt.INSTANCE) ;
}
public void finalize() throws LibvirtException {
diff --git a/src/org/libvirt/ConnectAuth.java b/src/org/libvirt/ConnectAuth.java
index ad70365..e29f010 100644
--- a/src/org/libvirt/ConnectAuth.java
+++ b/src/org/libvirt/ConnectAuth.java
@@ -133,7 +133,7 @@ public abstract class ConnectAuth implements
Libvirt.VirConnectAuthCallback {
}
- public int authCallback(virConnectCredential[] cred, int ncred, Pointer cbdata) {
+ public int authCallback(virConnectCredential cred, int ncred, Pointer cbdata) {
System.out.println("HELLO!!!!!!!!!!!!!!!!!!!!!!!!!") ;
return 1 ;
}
diff --git a/src/org/libvirt/jna/Libvirt.java b/src/org/libvirt/jna/Libvirt.java
index 1d51e2d..5ed9fad 100644
--- a/src/org/libvirt/jna/Libvirt.java
+++ b/src/org/libvirt/jna/Libvirt.java
@@ -156,7 +156,7 @@ public interface Libvirt extends Library
// Callbacks
interface VirConnectAuthCallback extends Callback {
- public int authCallback(virConnectCredential[] cred, int ncred, Pointer cbdata) ;
+ public int authCallback(virConnectCredential cred, int ncred, Pointer cbdata) ;
}
}
--
1.6.0.6