The functions virEventUpdateTimeout and virConnResetLastError have no
return value, they return void. In Java they had been mistakenly
wrapped as returning int.
---
src/main/java/org/libvirt/jna/Libvirt.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/libvirt/jna/Libvirt.java
b/src/main/java/org/libvirt/jna/Libvirt.java
index a17bfc7..a3cee0a 100644
--- a/src/main/java/org/libvirt/jna/Libvirt.java
+++ b/src/main/java/org/libvirt/jna/Libvirt.java
@@ -217,7 +217,7 @@ public interface Libvirt extends Library {
*/
@Deprecated
virError virConnGetLastError(ConnectionPointer virConnectPtr);
- int virConnResetLastError(ConnectionPointer virConnectPtr);
+ void virConnResetLastError(ConnectionPointer virConnectPtr);
String virConnectDomainXMLFromNative(ConnectionPointer virConnectPtr, String
nativeFormat,
String nativeConfig, int flags);
String virConnectDomainXMLToNative(ConnectionPointer virConnectPtr, String
nativeFormat, String domainXML,
@@ -469,5 +469,5 @@ public interface Libvirt extends Library {
// Event functions
int virEventAddTimeout(int milliSeconds, VirEventTimeoutCallback cb, Pointer opaque,
Pointer ff);
int virEventRemoveTimeout(int timer);
- int virEventUpdateTimeout(int timer, int timeout);
+ void virEventUpdateTimeout(int timer, int timeout);
}
--
2.2.2