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

[libvirt] [PATCH 05/12] Rename method domainEventDeregisterAny to domainEventDeregister



Change return type to void since we throw an exception on failure,
otherwise it was successful.

Again, this is safe because that method could hardly be used by anyone.

Signed-off-by: Claudio Bley <cbley av-test de>
---
 src/main/java/org/libvirt/Connect.java |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/libvirt/Connect.java b/src/main/java/org/libvirt/Connect.java
index b26fca4..1b05f6f 100644
--- a/src/main/java/org/libvirt/Connect.java
+++ b/src/main/java/org/libvirt/Connect.java
@@ -307,14 +307,11 @@ public class Connect {
      *      href="http://www.libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventDeregisterAny";>Libvirt
      *      Documentation</a>
      * @param callbackID
-     *            the callback to deregister
-     * @return 0 on success, -1 on failure
+     *            the callback identifier
      * @throws LibvirtException
      */
-    public int domainEventDeregisterAny(int callbackID) throws LibvirtException {
-        int returnValue = libvirt.virConnectDomainEventDeregisterAny(VCP, callbackID);
-        processError();
-        return returnValue;
+    public void domainEventDeregister(int callbackID) throws LibvirtException {
+        processError(libvirt.virConnectDomainEventDeregisterAny(VCP, callbackID));
     }
 
     /**
-- 
1.7.9.5


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