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

[libvirt] (no subject)



>From 9af3b59730ed3d098fd8864cd48efd5a8dc8bcfe Mon Sep 17 00:00:00 2001
Message-Id: <9af3b59730ed3d098fd8864cd48efd5a8dc8bcfe 1350037981 git cbley av-test de>
In-Reply-To: <cover 1350037981 git cbley av-test de>
References: <2DA6F4A3691599408358374D182280F9141CF6 xmb-rcd-x04 cisco com>	<cover 1350037981 git cbley av-test de>
From: cbley av-test de (Claudio Bley)
Date: Mon, 20 Aug 2012 16:52:28 +0200
Subject: [PATCH 07/15] Mark virConnCopyLastError and virConnGetLastError as deprecated.
To: libvir-list redhat com
Organization: AV-Test GmbH, Germany

They are only retained for backwards compatibility.
---
 src/main/java/org/libvirt/jna/Libvirt.java |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/main/java/org/libvirt/jna/Libvirt.java b/src/main/java/org/libvirt/jna/Libvirt.java
index 02457b7..be0de3b 100644
--- a/src/main/java/org/libvirt/jna/Libvirt.java
+++ b/src/main/java/org/libvirt/jna/Libvirt.java
@@ -109,6 +109,14 @@ public interface Libvirt extends Library {
 
     // Connection Functions
     String virConnectBaselineCPU(ConnectionPointer virConnectPtr, String[] xmlCPUs, int ncpus, int flags);
+
+    /**
+     * @deprecated as of libvirt 0.6.0, all errors reported in the
+     * per-connection object are also duplicated in the global error
+     * object. This method remains for backwards compatibility. Use
+     * { link #virCopyLastError} instead.
+    */
+    @Deprecated
     int virConnCopyLastError(ConnectionPointer virConnectPtr, virError to);
     int virConnectClose(ConnectionPointer virConnectPtr);
     int virConnectCompareCPU(ConnectionPointer virConnectPtr, String xmlDesc, int flags);
@@ -148,6 +156,14 @@ public interface Libvirt extends Library {
     ConnectionPointer virConnectOpen(String name);
     ConnectionPointer virConnectOpenAuth(String name, virConnectAuth auth, int flags);
     ConnectionPointer virConnectOpenReadOnly(String name);
+
+    /**
+     * @deprecated as of libvirt 0.6.0, all errors reported in the
+     * per-connection object are also duplicated in the global error
+     * object. This method remains only for backwards compatibility.
+     * Use { link #virGetLastError} instead.
+     */
+    @Deprecated
     virError virConnGetLastError(ConnectionPointer virConnectPtr);
     int virConnResetLastError(ConnectionPointer virConnectPtr);
     String virConnectDomainXMLFromNative(ConnectionPointer virConnectPtr, String nativeFormat,
-- 
AV-Test GmbH, Henricistra├če 20, 04155 Leipzig, Germany
Phone: +49 341 265 310 19
Web:<http://www.av-test.org>

Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076)
Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern


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