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

Claudio Bley cbley at av-test.de
Thu Jan 17 15:19:03 UTC 2013


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 at 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




More information about the libvir-list mailing list