[libvirt-java] [PATCH 65/65] Deprecate Connect.getHypervisorVersion

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

 



In libvirt 0.9.3 this has been changed to simply return the libvirt
version number.

Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
---
 src/main/java/org/libvirt/Connect.java |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/libvirt/Connect.java b/src/main/java/org/libvirt/Connect.java
index e909b29..a88abc1 100644
--- a/src/main/java/org/libvirt/Connect.java
+++ b/src/main/java/org/libvirt/Connect.java
@@ -1005,13 +1005,18 @@ public class Connect {
 
     /**
      * Returns the version of the hypervisor against which the library was
-     * compiled. The type parameter specified which hypervisor's version is
-     * returned
+     * compiled.
      *
-     * @param type
+     * Since libvirt 0.9.3 this simply returns the same version number
+     * as {@link Library#getVersion}.
+     * @param type The type of connection/driver to look at. See
+     *             {@link #getType()}. May be {@code null}.
      * @return major * 1,000,000 + minor * 1,000 + release
      * @throws LibvirtException
+     * @deprecated To get the version of the running hypervisor use
+     *             {@link #getVersion()} instead.
      */
+    @Deprecated
     public long getHypervisorVersion(String type) throws LibvirtException {
         LongByReference libVer = new LongByReference();
         LongByReference typeVer = new LongByReference();
-- 
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]