]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libsoup-2.4: Move Soup.xmlrpc_* methods into Soup.XMLRPC namespace.
authorEvan Nemerson <evan@coeus-group.com>
Sat, 21 Aug 2010 21:06:07 +0000 (14:06 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sat, 21 Aug 2010 21:06:07 +0000 (14:06 -0700)
vapi/libsoup-2.4.vapi
vapi/packages/libsoup-2.4/libsoup-2.4.metadata

index 1ea5e40b2ac9daaa5fc5f8c0f37b49bd95315a21..a4ab9f529c4c2889ce526d7848809dd8580f5109 100644 (file)
@@ -2,6 +2,35 @@
 
 [CCode (cprefix = "Soup", lower_case_cprefix = "soup_")]
 namespace Soup {
+       [CCode (cprefix = "SoupXMLRPC", lower_case_cprefix = "soup_xmlrpc_")]
+       namespace XMLRPC {
+               [PrintfFormat]
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static unowned string build_fault (int fault_code, string fault_format, ...);
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static unowned string build_method_call (string method_name, GLib.Value[] @params);
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static unowned string build_method_response (GLib.Value value);
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static GLib.Quark error_quark ();
+               [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               public static bool extract_method_call (string method_call, int length, out unowned string method_name, ...);
+               [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               public static bool extract_method_response (string method_response, int length, ...) throws GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static GLib.Quark fault_quark ();
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static bool parse_method_call (string method_call, int length, out unowned string method_name, out unowned GLib.ValueArray @params);
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static bool parse_method_response (string method_response, int length, GLib.Value value) throws GLib.Error;
+               [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               public static unowned Soup.Message request_new (string uri, string method_name, ...);
+               [PrintfFormat]
+               [CCode (cheader_filename = "libsoup/soup.h")]
+               public static void set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
+               [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
+               public static void set_response (Soup.Message msg, ...);
+       }
        [CCode (cheader_filename = "libsoup/soup.h")]
        public class Address : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -1086,29 +1115,41 @@ namespace Soup {
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static GLib.HashTable<string,GLib.Value> value_hash_new_with_vals (...);
        [PrintfFormat]
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.build_fault")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static unowned string xmlrpc_build_fault (int fault_code, string fault_format, ...);
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.build_method_call")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static unowned string xmlrpc_build_method_call (string method_name, GLib.Value[] @params);
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.build_method_response")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static unowned string xmlrpc_build_method_response (GLib.Value value);
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.error_quark")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static GLib.Quark xmlrpc_error_quark ();
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.extract_method_call")]
        [CCode (cheader_filename = "libsoup/soup.h", 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")]
        [CCode (cheader_filename = "libsoup/soup.h", 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")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static GLib.Quark xmlrpc_fault_quark ();
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.parse_method_call")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        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")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        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")]
        [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
        public static unowned Soup.Message xmlrpc_request_new (string uri, string method_name, ...);
        [PrintfFormat]
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.set_fault")]
        [CCode (cheader_filename = "libsoup/soup.h")]
        public static void xmlrpc_set_fault (Soup.Message msg, int fault_code, string fault_format, ...);
+       [Deprecated (since = "vala-0.12", replacement = "XMLRPC.set_response")]
        [CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
        public static void xmlrpc_set_response (Soup.Message msg, ...);
 }
index ae582f46e258cbfdc2a250b327b760d486ee0e06..acce698dc1aace5742015f4113177c065fdd72e1 100644 (file)
@@ -132,14 +132,15 @@ soup_uri_normalize transfer_ownership="1"
 soup_value_hash_insert ellipsis="1"
 soup_value_hash_*.hash type_arguments="string,GLib.Value"
 soup_value_hash_new* type_arguments="string,GLib.Value" transfer_ownership="1"
-soup_xmlrpc_build_fault ellipsis="1" printf_format="1"
-soup_xmlrpc_extract_method_call ellipsis="1" sentinel="G_TYPE_INVALID"
-soup_xmlrpc_extract_method_response ellipsis="1" sentinel="G_TYPE_INVALID"
+soup_xmlrpc_* parent="XMLRPC"
+soup_xmlrpc_build_fault parent="XMLRPC" ellipsis="1" printf_format="1"
+soup_xmlrpc_extract_method_call parent="XMLRPC" ellipsis="1" sentinel="G_TYPE_INVALID"
+soup_xmlrpc_extract_method_response parent="XMLRPC" ellipsis="1" sentinel="G_TYPE_INVALID"
 soup_xmlrpc_extract_method_response.type hidden="1"
-soup_xmlrpc_request_new ellipsis="1" sentinel="G_TYPE_INVALID"
-soup_xmlrpc_set_response ellipsis="1" sentinel="G_TYPE_INVALID"
+soup_xmlrpc_request_new parent="XMLRPC" ellipsis="1" sentinel="G_TYPE_INVALID"
+soup_xmlrpc_set_response parent="XMLRPC" ellipsis="1" sentinel="G_TYPE_INVALID"
 soup_xmlrpc_set_response.type hidden="1"
-soup_xmlrpc_set_fault ellipsis="1" printf_format="1"
+soup_xmlrpc_set_fault parent="XMLRPC" ellipsis="1" printf_format="1"
 
 # unsupported
 GData name="pointer"