[PATCH 05/12] Rename method domainEventDeregisterAny to domainEventDeregister

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

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]