[vala] libsoup-2.4: Move Soup.xmlrpc_* methods into Soup.XMLRPC namespace.



commit d3ee26d52d9c9e17bd6e898cb1862e5eddbb6b23
Author: Evan Nemerson <evan coeus-group com>
Date:   Sat Aug 21 14:06:07 2010 -0700

    libsoup-2.4: Move Soup.xmlrpc_* methods into Soup.XMLRPC namespace.

 vapi/libsoup-2.4.vapi                          |   41 ++++++++++++++++++++++++
 vapi/packages/libsoup-2.4/libsoup-2.4.metadata |   13 ++++---
 2 files changed, 48 insertions(+), 6 deletions(-)
---
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 1ea5e40..a4ab9f5 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -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, ...);
 }
diff --git a/vapi/packages/libsoup-2.4/libsoup-2.4.metadata b/vapi/packages/libsoup-2.4/libsoup-2.4.metadata
index ae582f4..acce698 100644
--- a/vapi/packages/libsoup-2.4/libsoup-2.4.metadata
+++ b/vapi/packages/libsoup-2.4/libsoup-2.4.metadata
@@ -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"



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