[libsoup] vala: replace [Deprecated] annotations with [Version]



commit d00507d2bc60c8a30a25e829b51465458fa61630
Author: Evan Nemerson <evan nemerson com>
Date:   Tue Oct 18 15:41:00 2016 -0700

    vala: replace [Deprecated] annotations with [Version]
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773177

 libsoup/Soup-2.4-custom.vala |   54 +++++++++++++++++++++---------------------
 1 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/libsoup/Soup-2.4-custom.vala b/libsoup/Soup-2.4-custom.vala
index 35449e9..95c2ad9 100644
--- a/libsoup/Soup-2.4-custom.vala
+++ b/libsoup/Soup-2.4-custom.vala
@@ -16,7 +16,7 @@ namespace Soup {
                public Buffer.subbuffer (Soup.Buffer parent, size_t offset, size_t length);
        }
 
-       [Deprecated (replacement = "Soup.ProxyURIResolver")]
+       [Version (replacement = "Soup.ProxyURIResolver")]
        [CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupProxyResolverInterface", type_id = 
"soup_proxy_resolver_get_type ()")]
        public interface ProxyResolver : Soup.SessionFeature, GLib.Object {
                public abstract void get_proxy_async (Soup.Message msg, GLib.MainContext async_context, 
GLib.Cancellable? cancellable, Soup.ProxyResolverCallback callback);
@@ -38,65 +38,65 @@ namespace Soup {
                public URI.with_base (Soup.URI @base, string uri_string);
        }
 
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.build_fault")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.build_fault")]
        [PrintfFormat]
        public static unowned string xmlrpc_build_fault (int fault_code, string fault_format, ...);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.build_method_call")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.build_method_call")]
        public static unowned string xmlrpc_build_method_call (string method_name, GLib.Value[] @params);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.build_method_response")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.build_method_response")]
        public static unowned string xmlrpc_build_method_response (GLib.Value value);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.error_quark")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.error_quark")]
        public static GLib.Quark xmlrpc_error_quark ();
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.extract_method_call")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.extract_method_call")]
        [CCode (sentinel = "G_TYPE_INVALID")]
        public static bool xmlrpc_extract_method_call (string method_call, int length, out unowned string 
method_name, ...);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.extract_method_response")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.extract_method_response")]
        [CCode (sentinel = "G_TYPE_INVALID")]
        public static bool xmlrpc_extract_method_response (string method_response, int length, ...) throws 
GLib.Error;
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.fault_quark")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.fault_quark")]
        public static GLib.Quark xmlrpc_fault_quark ();
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.parse_method_call")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.parse_method_call")]
        public static bool xmlrpc_parse_method_call (string method_call, int length, out unowned string 
method_name, out unowned GLib.ValueArray @params);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.parse_method_response")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.parse_method_response")]
        public static bool xmlrpc_parse_method_response (string method_response, int length, GLib.Value 
value) throws GLib.Error;
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.request_new")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.request_new")]
        [CCode (sentinel = "G_TYPE_INVALID")]
        public static unowned Soup.Message xmlrpc_request_new (string uri, string method_name, ...);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.set_fault")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.set_fault")]
        [PrintfFormat]
        public static void xmlrpc_set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
-       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.set_response")]
+       [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.set_response")]
        [CCode (sentinel = "G_TYPE_INVALID")]
        public static void xmlrpc_set_response (Soup.Message msg, ...);
 
-       [Deprecated (since = "vala-0.12", replacement = "Form.decode")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.decode")]
        public static GLib.HashTable<string,string> form_decode (string encoded_form);
-       [Deprecated (since = "vala-0.12", replacement = "Form.decode_multipart")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.decode_multipart")]
        public static GLib.HashTable<string,string> form_decode_multipart (Soup.Message msg, string 
file_control_name, out string filename, out string content_type, out Soup.Buffer file);
-       [Deprecated (since = "vala-0.12", replacement = "Form.encode")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.encode")]
        public static string form_encode (...);
-       [Deprecated (since = "vala-0.12", replacement = "Form.encode_datalist")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.encode_datalist")]
        public static string form_encode_datalist (void* form_data_set);
-       [Deprecated (since = "vala-0.12", replacement = "Form.encode_hash")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.encode_hash")]
        public static string form_encode_hash (GLib.HashTable<string,string> form_data_set);
-       [Deprecated (since = "vala-0.12")]
+       [Version (deprecated_since = "vala-0.12")]
        public static string form_encode_valist (string first_field, void* args);
-       [Deprecated (since = "vala-0.12", replacement = "Form.request_new")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new")]
        public static Soup.Message form_request_new (string method, string uri, ...);
-       [Deprecated (since = "vala-0.12", replacement = "Form.request_new_from_datalist")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new_from_datalist")]
        public static Soup.Message form_request_new_from_datalist (string method, string uri, void* 
form_data_set);
-       [Deprecated (since = "vala-0.12", replacement = "Form.request_new_from_hash")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new_from_hash")]
        public static Soup.Message form_request_new_from_hash (string method, string uri, 
GLib.HashTable<string,string> form_data_set);
-       [Deprecated (since = "vala-0.12", replacement = "Form.request_new_from_multipart")]
+       [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new_from_multipart")]
        public static Soup.Message form_request_new_from_multipart (string uri, Soup.Multipart multipart);
-       [Deprecated (since = "vala-0.14", replacement = "SSLError.quark")]
+       [Version (deprecated_since = "vala-0.14", replacement = "SSLError.quark")]
        public static GLib.Quark ssl_error_quark ();
 
-       [Deprecated (since = "vala-0.22", replacement = "Status.get_phrase")]
+       [Version (deprecated_since = "vala-0.22", replacement = "Status.get_phrase")]
        public static unowned string status_get_phrase (uint status_code);
-       [Deprecated (since = "vala-0.22", replacement = "Status.proxify")]
+       [Version (deprecated_since = "vala-0.22", replacement = "Status.proxify")]
        public static uint status_proxify (uint status_code);
-       [Deprecated (since = "vala-0.22", replacement = "Status")]
+       [Version (deprecated_since = "vala-0.22", replacement = "Status")]
        [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_STATUS_", type_id = 
"soup_known_status_code_get_type ()")]
        public enum KnownStatusCode {
                NONE,


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