[vala/switch-to-gir-soup] libsoup-2.4: Switch to GIR



commit 067d93215d21ef585cb70a31e562ecdc16ed82eb
Author: Luca Bruno <lucabru src gnome org>
Date:   Fri May 6 23:29:12 2011 +0200

    libsoup-2.4: Switch to GIR

 vapi/libsoup-2.4.vapi                             |  549 ++--
 vapi/metadata/Soup-2.4.metadata                   |   18 +
 vapi/packages/libsoup-2.4/libsoup-2.4-custom.vala |   53 -
 vapi/packages/libsoup-2.4/libsoup-2.4.deps        |    1 -
 vapi/packages/libsoup-2.4/libsoup-2.4.files       |    2 -
 vapi/packages/libsoup-2.4/libsoup-2.4.gi          | 3241 ---------------------
 vapi/packages/libsoup-2.4/libsoup-2.4.metadata    |  154 -
 vapi/packages/libsoup-2.4/libsoup-2.4.namespace   |    1 -
 8 files changed, 268 insertions(+), 3751 deletions(-)
---
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index dbada0c..706941f 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -1,6 +1,6 @@
-/* libsoup-2.4.vapi generated by vapigen, do not modify. */
+/* libsoup-2.4.vapi generated by lt-vapigen, do not modify. */
 
-[CCode (cprefix = "Soup", lower_case_cprefix = "soup_")]
+[CCode (cprefix = "Soup", lower_case_cprefix = "soup_", gir_namespace = "Soup", gir_version = "2.4")]
 namespace Soup {
 	[CCode (cprefix = "SoupForm", lower_case_cprefix = "soup_form_")]
 	namespace Form {
@@ -9,17 +9,19 @@ namespace Soup {
 		[CCode (cheader_filename = "libsoup/soup.h")]
 		public static GLib.HashTable<string,string> decode_multipart (Soup.Message msg, string file_control_name, out string filename, out string content_type, out Soup.Buffer file);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static string encode (...);
+		public static string encode (string first_field, ...);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static string encode_datalist (void* form_data_set);
+		public static string encode_datalist (GLib.Datalist form_data_set);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static string encode_hash (GLib.HashTable<string,string> form_data_set);
+		public static string encode_hash (GLib.HashTable<weak string,weak string> form_data_set);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static Soup.Message request_new (string method, string uri, ...);
+		public static string encode_valist (string first_field, va_list args);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static Soup.Message request_new_from_datalist (string method, string uri, void* form_data_set);
+		public static Soup.Message request_new (string method, string uri, string first_field, ...);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static Soup.Message request_new_from_hash (string method, string uri, GLib.HashTable<string,string> form_data_set);
+		public static Soup.Message request_new_from_datalist (string method, string uri, GLib.Datalist form_data_set);
+		[CCode (cheader_filename = "libsoup/soup.h")]
+		public static Soup.Message request_new_from_hash (string method, string uri, GLib.HashTable<weak string,weak string> form_data_set);
 		[CCode (cheader_filename = "libsoup/soup.h")]
 		public static Soup.Message request_new_from_multipart (string uri, Soup.Multipart multipart);
 	}
@@ -43,43 +45,42 @@ namespace Soup {
 			SYSTEM_ERROR,
 			TRANSPORT_ERROR,
 		}
-		[PrintfFormat]
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static unowned string build_fault (int fault_code, string fault_format, ...);
+		public static 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);
+		public static string build_method_call (string method_name, GLib.Value @params, int n_params);
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static unowned string build_method_response (GLib.Value value);
+		public static 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 Soup.XMLRPC.Fault;
+		[CCode (cheader_filename = "libsoup/soup.h")]
+		public static bool extract_method_call (string method_call, int length, out string method_name, ...);
+		[CCode (cheader_filename = "libsoup/soup.h")]
+		public static bool extract_method_response (string method_response, int length, GLib.Error error, GLib.Type type, ...);
 		[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);
+		public static bool parse_method_call (string method_call, int length, out string method_name, out GLib.ValueArray @params);
+		[CCode (cheader_filename = "libsoup/soup.h")]
+		public static bool parse_method_response (string method_response, int length, out GLib.Value value) throws GLib.Error;
 		[CCode (cheader_filename = "libsoup/soup.h")]
-		public static bool parse_method_response (string method_response, int length, GLib.Value value) throws Soup.XMLRPC.Fault;
-		[CCode (cheader_filename = "libsoup/soup.h", sentinel = "G_TYPE_INVALID")]
-		public static unowned Soup.Message request_new (string uri, string method_name, ...);
-		[PrintfFormat]
+		public static Soup.Message request_new (string uri, string method_name, ...);
 		[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 static void set_response (Soup.Message msg, GLib.Type type, ...);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public class Address : GLib.Object {
+	[CCode (type_id = "soup_address_get_type ()", cheader_filename = "libsoup/soup.h")]
+	public class Address : GLib.Object, GLib.SocketConnectable {
 		[CCode (has_construct_function = false)]
 		public Address (string name, uint port);
 		[CCode (has_construct_function = false)]
 		public Address.any (Soup.AddressFamily family, uint port);
-		public static bool equal_by_ip ([CCode (type = "void*")] Soup.Address addr1, [CCode (type = "void*")] Soup.Address addr2);
-		public static bool equal_by_name ([CCode (type = "void*")] Soup.Address addr1, [CCode (type = "void*")] Soup.Address addr2);
+		public static bool equal_by_ip (void* addr1, void* addr2);
+		public static bool equal_by_name (void* addr1, void* addr2);
 		[CCode (has_construct_function = false)]
 		public Address.from_sockaddr (void* sa, int len);
+		public GLib.SocketAddress get_gsockaddr ();
 		public unowned string get_name ();
 		public unowned string get_physical ();
 		public uint get_port ();
@@ -87,51 +88,54 @@ namespace Soup {
 		public static uint hash_by_ip (void* addr);
 		public static uint hash_by_name (void* addr);
 		public bool is_resolved ();
-		public void resolve_async (GLib.MainContext async_context, GLib.Cancellable cancellable, Soup.AddressCallback callback);
-		public uint resolve_sync (GLib.Cancellable cancellable);
+		public void resolve_async (GLib.MainContext? async_context, GLib.Cancellable? cancellable, [CCode (delegate_target_pos = 3.1)] Soup.AddressCallback callback);
+		public uint resolve_sync (GLib.Cancellable? cancellable);
 		[NoAccessorMethod]
 		public Soup.AddressFamily family { get; construct; }
 		public string name { get; construct; }
 		public string physical { get; }
 		public int port { get; construct; }
+		[NoAccessorMethod]
 		public void* sockaddr { get; construct; }
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_auth_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Auth : GLib.Object {
 		[CCode (has_construct_function = false)]
 		public Auth (GLib.Type type, Soup.Message msg, string auth_header);
 		public virtual void authenticate (string username, string password);
-		public virtual unowned string get_authorization (Soup.Message msg);
+		public virtual string get_authorization (Soup.Message msg);
 		public unowned string get_host ();
-		public unowned string get_info ();
+		public string get_info ();
 		public virtual GLib.SList<string> get_protection_space (Soup.URI source_uri);
 		public unowned string get_realm ();
 		public unowned string get_scheme_name ();
-		public virtual bool update (Soup.Message msg, string auth_header);
+		public virtual bool update (Soup.Message msg, GLib.HashTable<weak void*,weak void*> auth_params);
 		public string host { get; construct; }
-		[NoAccessorMethod]
-		public bool is_authenticated { get; }
-		[NoAccessorMethod]
+		public virtual bool is_authenticated { get; }
 		public bool is_for_proxy { get; construct; }
 		public string realm { get; construct; }
 		public string scheme_name { get; }
-		public virtual signal void save_password (string p0, string p1);
+		public signal void save_password (string object, string p0);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_auth_domain_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class AuthDomain : GLib.Object {
 		[CCode (has_construct_function = false)]
 		protected AuthDomain ();
-		public virtual unowned string accepts (Soup.Message msg);
-		public void add_path (string path);
-		public virtual unowned string challenge (Soup.Message msg);
+		[NoWrapper]
+		public virtual string accepts (Soup.Message msg, string header);
+		public void basic_set_auth_callback (owned Soup.AuthDomainBasicAuthCallback callback);
+		[NoWrapper]
+		public virtual string challenge (Soup.Message msg);
 		public virtual bool check_password (Soup.Message msg, string username, string password);
 		public bool covers (Soup.Message msg);
+		public void digest_set_auth_callback (owned Soup.AuthDomainDigestAuthCallback callback);
 		public unowned string get_realm ();
-		public void remove_path (string path);
 		public void set_filter (owned Soup.AuthDomainFilter filter);
 		public void set_generic_auth_callback (owned Soup.AuthDomainGenericAuthCallback auth_callback);
 		public bool try_generic_auth_callback (Soup.Message msg, string username);
 		[NoAccessorMethod]
+		public string add_path { set; }
+		[NoAccessorMethod]
 		public void* filter { get; set; }
 		[NoAccessorMethod]
 		public void* filter_data { get; set; }
@@ -142,49 +146,51 @@ namespace Soup {
 		[NoAccessorMethod]
 		public bool proxy { get; construct; }
 		public string realm { get; construct; }
+		[NoAccessorMethod]
+		public string remove_path { set; }
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_auth_domain_basic_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class AuthDomainBasic : Soup.AuthDomain {
-		[CCode (type = "SoupAuthDomain*", has_construct_function = false)]
-		public AuthDomainBasic (string optname1);
-		public static void set_auth_callback (Soup.AuthDomain domain, owned Soup.AuthDomainBasicAuthCallback callback);
+		[CCode (has_construct_function = false)]
+		protected AuthDomainBasic ();
 		[NoAccessorMethod]
 		public void* auth_callback { get; set; }
 		[NoAccessorMethod]
 		public void* auth_data { get; set; }
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_auth_domain_digest_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class AuthDomainDigest : Soup.AuthDomain {
-		[CCode (type = "SoupAuthDomain*", has_construct_function = false)]
-		public AuthDomainDigest (string optname1);
-		public static unowned string encode_password (string username, string realm, string password);
-		public static void set_auth_callback (Soup.AuthDomain domain, owned Soup.AuthDomainDigestAuthCallback callback);
+		[CCode (has_construct_function = false)]
+		protected AuthDomainDigest ();
+		public static string encode_password (string username, string realm, string password);
 		[NoAccessorMethod]
 		public void* auth_callback { get; set; }
 		[NoAccessorMethod]
 		public void* auth_data { get; set; }
 	}
 	[Compact]
-	[CCode (ref_function = "soup_buffer_copy", unref_function = "soup_buffer_free", type_id = "SOUP_TYPE_BUFFER", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_buffer_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Buffer {
-		[CCode (array_length_cname = "length", array_length_type = "size_t")]
-		public uint8[] data;
+		public void* data;
 		public size_t length;
 		[CCode (has_construct_function = false)]
-		public Buffer (Soup.MemoryUse use, [CCode (type = "void*", array_length_type = "gsize")] uint8[] data);
+		public Buffer (Soup.MemoryUse use, [CCode (type = "gconstpointer", array_length_type = "gsize", array_length_cname = "length", array_length_pos = 2.1)] uint8[] data);
 		public Soup.Buffer copy ();
+		public void free ();
+		public void get_data ([CCode (array_length_type = "gsize", array_length_cname = "length")] out unowned uint8[] data);
 		public void* get_owner ();
+		public Soup.Buffer new_subbuffer (size_t offset, size_t length);
 		[CCode (has_construct_function = false)]
-		public Buffer.subbuffer (Soup.Buffer parent, size_t offset, size_t length);
+		public Buffer.take ([CCode (array_length_type = "gsize", array_length_cname = "length")] owned uint8[] data);
 		[CCode (has_construct_function = false)]
-		public Buffer.with_owner ([CCode (type = "void*", array_length_type = "gsize")] uint8[] data, void* owner, GLib.DestroyNotify? owner_dnotify);
+		public Buffer.with_owner (void* data, size_t length, void* owner, GLib.DestroyNotify owner_dnotify);
 	}
 	[Compact]
-	[CCode (type_id = "SOUP_TYPE_BYTE_ARRAY", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_byte_array_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class ByteArray {
 	}
 	[Compact]
-	[CCode (type_id = "SOUP_TYPE_CLIENT_CONTEXT", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_client_context_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class ClientContext {
 		public unowned Soup.Address get_address ();
 		public unowned Soup.AuthDomain get_auth_domain ();
@@ -192,21 +198,21 @@ namespace Soup {
 		public unowned string get_host ();
 		public unowned Soup.Socket get_socket ();
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_content_decoder_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class ContentDecoder : GLib.Object, Soup.SessionFeature {
 		[CCode (has_construct_function = false)]
 		protected ContentDecoder ();
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_content_sniffer_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class ContentSniffer : GLib.Object, Soup.SessionFeature {
 		[CCode (has_construct_function = false)]
 		public ContentSniffer ();
 		[NoWrapper]
 		public virtual size_t get_buffer_size ();
-		public virtual string sniff (Soup.Message msg, Soup.Buffer buffer, out GLib.HashTable<string,string>? @params);
+		public virtual string sniff (Soup.Message msg, Soup.Buffer buffer, GLib.HashTable<weak void*,weak void*> @params);
 	}
 	[Compact]
-	[CCode (copy_function = "soup_cookie_copy", type_id = "SOUP_TYPE_COOKIE", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_cookie_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Cookie {
 		public weak string domain;
 		public weak Soup.Date expires;
@@ -221,7 +227,15 @@ namespace Soup {
 		public Soup.Cookie copy ();
 		public bool domain_matches (string host);
 		public bool equal (Soup.Cookie cookie2);
-		public static unowned Soup.Cookie parse (string header, Soup.URI origin);
+		public void free ();
+		public unowned string get_domain ();
+		public unowned Soup.Date get_expires ();
+		public bool get_http_only ();
+		public unowned string get_name ();
+		public unowned string get_path ();
+		public bool get_secure ();
+		public unowned string get_value ();
+		public static Soup.Cookie parse (string header, Soup.URI origin);
 		public void set_domain (string domain);
 		public void set_expires (Soup.Date expires);
 		public void set_http_only (bool http_only);
@@ -230,10 +244,10 @@ namespace Soup {
 		public void set_path (string path);
 		public void set_secure (bool secure);
 		public void set_value (string value);
-		public unowned string to_cookie_header ();
-		public unowned string to_set_cookie_header ();
+		public string to_cookie_header ();
+		public string to_set_cookie_header ();
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_cookie_jar_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class CookieJar : GLib.Object, Soup.SessionFeature {
 		[CCode (has_construct_function = false)]
 		public CookieJar ();
@@ -241,7 +255,7 @@ namespace Soup {
 		public GLib.SList<Soup.Cookie> all_cookies ();
 		public void delete_cookie (Soup.Cookie cookie);
 		public Soup.CookieJarAcceptPolicy get_accept_policy ();
-		public unowned string get_cookies (Soup.URI uri, bool for_http);
+		public string get_cookies (Soup.URI uri, bool for_http);
 		public virtual void save ();
 		public void set_accept_policy (Soup.CookieJarAcceptPolicy policy);
 		public void set_cookie (Soup.URI uri, string cookie);
@@ -251,7 +265,7 @@ namespace Soup {
 		public bool read_only { get; construct; }
 		public virtual signal void changed (Soup.Cookie old_cookie, Soup.Cookie new_cookie);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_cookie_jar_text_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class CookieJarText : Soup.CookieJar, Soup.SessionFeature {
 		[CCode (type = "SoupCookieJar*", has_construct_function = false)]
 		public CookieJarText (string filename, bool read_only);
@@ -259,7 +273,7 @@ namespace Soup {
 		public string filename { owned get; construct; }
 	}
 	[Compact]
-	[CCode (copy_function = "soup_date_copy", type_id = "SOUP_TYPE_DATE", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_date_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Date {
 		public int day;
 		public int hour;
@@ -272,18 +286,27 @@ namespace Soup {
 		[CCode (has_construct_function = false)]
 		public Date (int year, int month, int day, int hour, int minute, int second);
 		public Soup.Date copy ();
+		public void free ();
 		[CCode (has_construct_function = false)]
 		public Date.from_now (int offset_seconds);
 		[CCode (has_construct_function = false)]
 		public Date.from_string (string date_string);
 		[CCode (has_construct_function = false)]
-		public Date.from_time_t (ulong when);
+		public Date.from_time_t (long when);
+		public int get_day ();
+		public int get_hour ();
+		public int get_minute ();
+		public int get_month ();
+		public int get_offset ();
+		public int get_second ();
+		public int get_utc ();
+		public int get_year ();
 		public bool is_past ();
-		public unowned string to_string (Soup.DateFormat format);
-		public ulong to_time_t ();
-		public void to_timeval (GLib.TimeVal time);
+		public string to_string (Soup.DateFormat format);
+		public long to_time_t ();
+		public GLib.TimeVal to_timeval ();
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_logger_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Logger : GLib.Object, Soup.SessionFeature {
 		[CCode (has_construct_function = false)]
 		public Logger (Soup.LoggerLogLevel level, int max_body_size);
@@ -291,16 +314,10 @@ namespace Soup {
 		public void set_request_filter (owned Soup.LoggerFilter request_filter);
 		public void set_response_filter (owned Soup.LoggerFilter response_filter);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_message_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Message : GLib.Object {
-		public weak Soup.MessageBody request_body;
-		public weak Soup.MessageHeaders request_headers;
-		public weak Soup.MessageBody response_body;
-		public weak Soup.MessageHeaders response_headers;
 		[CCode (has_construct_function = false)]
 		public Message (string method, string uri_string);
-		public uint add_header_handler (string @signal, string header, GLib.Callback callback);
-		public uint add_status_code_handler (string @signal, uint status_code, GLib.Callback callback);
 		public void disable_feature (GLib.Type feature_type);
 		[CCode (has_construct_function = false)]
 		public Message.from_uri (string method, Soup.URI uri);
@@ -311,11 +328,11 @@ namespace Soup {
 		public unowned Soup.URI get_uri ();
 		public bool is_keepalive ();
 		public void set_chunk_allocator (owned Soup.ChunkAllocator allocator);
-		public void set_first_party (...);
+		public void set_first_party (Soup.URI first_party);
 		public void set_flags (Soup.MessageFlags flags);
 		public void set_http_version (Soup.HTTPVersion version);
-		public void set_request (string content_type, Soup.MemoryUse req_use, [CCode (type = "const char*", array_length_type = "gsize")] uint8[] req_body);
-		public void set_response (string content_type, Soup.MemoryUse resp_use, [CCode (type = "const char*", array_length_type = "gsize")] uint8[] resp_body);
+		public void set_request (string content_type, Soup.MemoryUse req_use, string req_body, size_t req_length);
+		public void set_response (string? content_type, Soup.MemoryUse resp_use, [CCode (array_length_type = "gsize", array_length_cname = "resp_length", array_length_pos = 3.1)] uint8[] resp_body);
 		public void set_status (uint status_code);
 		public void set_status_full (uint status_code, string reason_phrase);
 		public void set_uri (Soup.URI uri);
@@ -327,12 +344,20 @@ namespace Soup {
 		[NoAccessorMethod]
 		public string reason_phrase { owned get; set; }
 		[NoAccessorMethod]
+		public Soup.MessageBody request_body { owned get; }
+		[NoAccessorMethod]
+		public Soup.MessageHeaders request_headers { owned get; }
+		[NoAccessorMethod]
+		public Soup.MessageBody response_body { owned get; }
+		[NoAccessorMethod]
+		public Soup.MessageHeaders response_headers { owned get; }
+		[NoAccessorMethod]
 		public bool server_side { get; construct; }
 		[NoAccessorMethod]
 		public uint status_code { get; set; }
 		public Soup.URI uri { get; set; }
 		[HasEmitter]
-		public virtual signal void content_sniffed (string p0, GLib.HashTable p1);
+		public signal void content_sniffed (string object, GLib.HashTable<weak void*,weak void*> p0);
 		[HasEmitter]
 		public virtual signal void finished ();
 		[HasEmitter]
@@ -348,7 +373,7 @@ namespace Soup {
 		[HasEmitter]
 		public virtual signal void wrote_body ();
 		[HasEmitter]
-		public virtual signal void wrote_body_data (Soup.Buffer p0);
+		public signal void wrote_body_data (Soup.Buffer object);
 		[HasEmitter]
 		public virtual signal void wrote_chunk ();
 		[HasEmitter]
@@ -357,86 +382,77 @@ namespace Soup {
 		public virtual signal void wrote_informational ();
 	}
 	[Compact]
-	[CCode (type_id = "SOUP_TYPE_MESSAGE_BODY", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_message_body_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class MessageBody {
-		[CCode (array_length_cname = "length", array_length_type = "gint64")]
-		public weak uint8[] data;
+		public weak string data;
 		public int64 length;
 		[CCode (has_construct_function = false)]
 		public MessageBody ();
-		public void append (Soup.MemoryUse use, [CCode (type = "gconstpointer", array_length_type = "gsize")] uint8[] data);
+		public void append (Soup.MemoryUse use, [CCode (array_length_type = "gsize", array_length_cname = "length", array_length_pos = 2.1)] uint8[] data);
 		public void append_buffer (Soup.Buffer buffer);
+		public void append_take ([CCode (array_length_type = "gsize", array_length_cname = "length")] owned uint8[] data);
 		public void complete ();
 		public Soup.Buffer flatten ();
+		public void free ();
 		public bool get_accumulate ();
-		public unowned Soup.Buffer get_chunk (int64 offset);
+		public Soup.Buffer get_chunk (int64 offset);
 		public void got_chunk (Soup.Buffer chunk);
 		public void set_accumulate (bool accumulate);
 		public void truncate ();
 		public void wrote_chunk (Soup.Buffer chunk);
 	}
 	[Compact]
-	[CCode (type_id = "SOUP_TYPE_MESSAGE_HEADERS", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_message_headers_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class MessageHeaders {
 		[CCode (has_construct_function = false)]
 		public MessageHeaders (Soup.MessageHeadersType type);
 		public void append (string name, string value);
 		public void clear ();
 		public void @foreach (Soup.MessageHeadersForeachFunc func);
+		public void free ();
 		public void free_ranges (Soup.Range ranges);
 		public unowned string @get (string name);
-		public bool get_content_disposition (out string disposition, out GLib.HashTable? @params);
+		public bool get_content_disposition (string disposition, GLib.HashTable<weak void*,weak void*> @params);
 		public int64 get_content_length ();
 		public bool get_content_range (int64 start, int64 end, int64 total_length);
-		public unowned string get_content_type (out GLib.HashTable<string,string>? @params);
+		public unowned string get_content_type (GLib.HashTable<weak void*,weak void*> @params);
 		public Soup.Encoding get_encoding ();
 		public Soup.Expectation get_expectations ();
 		public unowned string get_list (string name);
 		public unowned string get_one (string name);
-		public bool get_ranges (int64 total_length, out unowned Soup.Range ranges, int length);
+		public bool get_ranges (int64 total_length, Soup.Range ranges, int length);
 		public void remove (string name);
 		public void replace (string name, string value);
-		public void set_content_disposition (string disposition, GLib.HashTable<string,string>? @params);
+		public void set_content_disposition (string disposition, GLib.HashTable<weak void*,weak void*> @params);
 		public void set_content_length (int64 content_length);
 		public void set_content_range (int64 start, int64 end, int64 total_length);
-		public void set_content_type (string content_type, GLib.HashTable<string,string>? @params);
+		public void set_content_type (string content_type, GLib.HashTable<weak void*,weak void*> @params);
 		public void set_encoding (Soup.Encoding encoding);
 		public void set_expectations (Soup.Expectation expectations);
 		public void set_range (int64 start, int64 end);
 		public void set_ranges (Soup.Range ranges, int length);
 	}
 	[Compact]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public class MessageHeadersIter {
-		public void init (Soup.MessageHeaders hdrs);
-		public bool next (out unowned string name, out unowned string value);
-	}
-	[Compact]
-	[CCode (type_id = "SOUP_TYPE_MULTIPART", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_multipart_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Multipart {
 		[CCode (has_construct_function = false)]
 		public Multipart (string mime_type);
 		public void append_form_file (string control_name, string filename, string content_type, Soup.Buffer body);
 		public void append_form_string (string control_name, string data);
 		public void append_part (Soup.MessageHeaders headers, Soup.Buffer body);
+		public void free ();
 		[CCode (has_construct_function = false)]
 		public Multipart.from_message (Soup.MessageHeaders headers, Soup.MessageBody body);
 		public int get_length ();
-		public bool get_part (int part, out unowned Soup.MessageHeaders headers, out unowned Soup.Buffer body);
+		public bool get_part (int part, Soup.MessageHeaders headers, Soup.Buffer body);
 		public void to_message (Soup.MessageHeaders dest_headers, Soup.MessageBody dest_body);
 	}
-	[Compact]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public class Range {
-		public int64 end;
-		public int64 start;
-	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_server_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Server : GLib.Object {
 		[CCode (has_construct_function = false)]
-		public Server (string optname1, ...);
+		protected Server ();
 		public void add_auth_domain (Soup.AuthDomain auth_domain);
-		public void add_handler (string path, owned Soup.ServerCallback callback);
+		public void add_handler (string? path, [CCode (delegate_target_pos = 2.1)] owned Soup.ServerCallback callback);
 		public unowned GLib.MainContext get_async_context ();
 		public unowned Soup.Socket get_listener ();
 		public uint get_port ();
@@ -448,7 +464,7 @@ namespace Soup {
 		public void run ();
 		public void run_async ();
 		public void unpause_message (Soup.Message msg);
-		public GLib.MainContext async_context { get; construct; }
+		public void* async_context { get; construct; }
 		[NoAccessorMethod]
 		public Soup.Address @interface { owned get; construct; }
 		public uint port { get; construct; }
@@ -465,7 +481,7 @@ namespace Soup {
 		public virtual signal void request_read (Soup.Message msg, Soup.ClientContext client);
 		public virtual signal void request_started (Soup.Message msg, Soup.ClientContext client);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_session_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Session : GLib.Object {
 		[CCode (has_construct_function = false)]
 		protected Session ();
@@ -476,10 +492,10 @@ namespace Soup {
 		public unowned GLib.MainContext get_async_context ();
 		public unowned Soup.SessionFeature get_feature (GLib.Type feature_type);
 		public unowned Soup.SessionFeature get_feature_for_message (GLib.Type feature_type, Soup.Message msg);
-		public GLib.SList<weak Soup.SessionFeature> get_features (GLib.Type feature_type);
+		public GLib.SList<weak void*> get_features (GLib.Type feature_type);
 		public void pause_message (Soup.Message msg);
 		public void prepare_for_uri (Soup.URI uri);
-		public virtual void queue_message (owned Soup.Message msg, Soup.SessionCallback? callback);
+		public virtual void queue_message (owned Soup.Message msg, [CCode (delegate_target_pos = 2.1)] Soup.SessionCallback? callback);
 		public void remove_feature (Soup.SessionFeature feature);
 		public virtual void requeue_message (Soup.Message msg);
 		public virtual uint send_message (Soup.Message msg);
@@ -492,7 +508,7 @@ namespace Soup {
 		public Soup.SessionFeature add_feature { owned get; set; }
 		[NoAccessorMethod]
 		public GLib.Type add_feature_by_type { get; set; }
-		public GLib.MainContext async_context { get; construct; }
+		public void* async_context { get; construct; }
 		[NoAccessorMethod]
 		public uint idle_timeout { get; set; }
 		[NoAccessorMethod]
@@ -514,32 +530,28 @@ namespace Soup {
 		[NoAccessorMethod]
 		public string user_agent { owned get; set; }
 		public virtual signal void authenticate (Soup.Message msg, Soup.Auth auth, bool retrying);
-		public virtual signal void connection_created (GLib.Object p0);
-		public virtual signal void request_queued (Soup.Message p0);
+		public signal void connection_created (GLib.Object object);
+		public signal void request_queued (Soup.Message object);
 		public virtual signal void request_started (Soup.Message msg, Soup.Socket socket);
-		public virtual signal void request_unqueued (Soup.Message p0);
-		public virtual signal void tunneling (GLib.Object p0);
+		public signal void request_unqueued (Soup.Message object);
+		public signal void tunneling (GLib.Object object);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_session_async_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class SessionAsync : Soup.Session {
 		[CCode (type = "SoupSession*", has_construct_function = false)]
 		public SessionAsync ();
-		[CCode (type = "SoupSession*", has_construct_function = false)]
-		public SessionAsync.with_options (string optname1, ...);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_session_sync_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class SessionSync : Soup.Session {
 		[CCode (type = "SoupSession*", has_construct_function = false)]
 		public SessionSync ();
-		[CCode (type = "SoupSession*", has_construct_function = false)]
-		public SessionSync.with_options (string optname1, ...);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (type_id = "soup_socket_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class Socket : GLib.Object {
 		[CCode (has_construct_function = false)]
-		public Socket (string optname1);
-		public void connect_async (GLib.Cancellable cancellable, Soup.SocketCallback callback);
-		public uint connect_sync (GLib.Cancellable cancellable);
+		protected Socket ();
+		public void connect_async (GLib.Cancellable? cancellable, [CCode (delegate_target_pos = 2.1)] Soup.SocketCallback callback);
+		public uint connect_sync (GLib.Cancellable? cancellable);
 		public void disconnect ();
 		public int get_fd ();
 		public unowned Soup.Address get_local_address ();
@@ -547,13 +559,14 @@ namespace Soup {
 		public bool is_connected ();
 		public bool is_ssl ();
 		public bool listen ();
-		public Soup.SocketIOStatus read ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t nread, GLib.Cancellable? cancellable = null) throws GLib.Error;
-		public Soup.SocketIOStatus read_until ([CCode (array_length_type = "gsize")] uint8[] buffer, [CCode (array_length_type = "gsize")] uint8[] boundary, out size_t nread, out bool got_boundary, GLib.Cancellable? cancellable = null) throws GLib.Error;
-		public bool start_proxy_ssl (string ssl_host, GLib.Cancellable cancellable);
-		public bool start_ssl (GLib.Cancellable cancellable);
-		public Soup.SocketIOStatus write ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t nwrote, GLib.Cancellable? cancellable = null) throws GLib.Error;
+		public Soup.SocketIOStatus read (void* buffer, size_t len, size_t nread, GLib.Cancellable? cancellable) throws GLib.Error;
+		public Soup.SocketIOStatus read_until (void* buffer, size_t len, void* boundary, size_t boundary_len, size_t nread, bool got_boundary, GLib.Cancellable? cancellable) throws GLib.Error;
+		public bool start_proxy_ssl (string ssl_host, GLib.Cancellable? cancellable);
+		public bool start_ssl (GLib.Cancellable? cancellable);
+		public Soup.SocketIOStatus write (void* buffer, size_t len, size_t nwrote, GLib.Cancellable? cancellable) throws GLib.Error;
 		[NoAccessorMethod]
-		public GLib.MainContext async_context { get; construct; }
+		public void* async_context { get; construct; }
+		public bool clean_dispose { construct; }
 		[NoAccessorMethod]
 		public bool is_server { get; }
 		public Soup.Address local_address { get; construct; }
@@ -569,12 +582,12 @@ namespace Soup {
 		[NoAccessorMethod]
 		public bool trusted_certificate { get; construct; }
 		public virtual signal void disconnected ();
-		public virtual signal void new_connection (Soup.Socket p0);
+		public virtual signal void new_connection (Soup.Socket arg1);
 		public virtual signal void readable ();
 		public virtual signal void writable ();
 	}
 	[Compact]
-	[CCode (copy_function = "soup_uri_copy", type_id = "SOUP_TYPE_URI", cheader_filename = "libsoup/soup.h")]
+	[CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "soup_uri_get_type ()", cheader_filename = "libsoup/soup.h")]
 	public class URI {
 		public weak string fragment;
 		public weak string host;
@@ -587,12 +600,22 @@ namespace Soup {
 		[CCode (has_construct_function = false)]
 		public URI (string uri_string);
 		public Soup.URI copy ();
-		public unowned Soup.URI copy_host ();
+		public Soup.URI copy_host ();
 		public static string decode (string part);
-		public static string encode (string part, string? escape_extra);
+		public static string encode (string part, string escape_extra);
 		public bool equal (Soup.URI uri2);
-		public static bool host_equal (Soup.URI v1, Soup.URI v2);
-		public static uint host_hash (Soup.URI key);
+		public void free ();
+		public unowned string get_fragment ();
+		public unowned string get_host ();
+		public unowned string get_password ();
+		public unowned string get_path ();
+		public uint get_port ();
+		public unowned string get_query ();
+		public unowned string get_scheme ();
+		public unowned string get_user ();
+		public static bool host_equal (void* v1, void* v2);
+		public static uint host_hash (void* key);
+		public Soup.URI new_with_base (string uri_string);
 		public static string normalize (string part, string unescape_extra);
 		public void set_fragment (string fragment);
 		public void set_host (string host);
@@ -600,26 +623,22 @@ namespace Soup {
 		public void set_path (string path);
 		public void set_port (uint port);
 		public void set_query (string query);
-		public void set_query_from_fields (...);
-		public void set_query_from_form (GLib.HashTable<string,string> form);
+		public void set_query_from_form (GLib.HashTable<weak string,weak string> form);
 		public void set_scheme (string scheme);
 		public void set_user (string user);
 		public string to_string (bool just_path_and_query);
 		public bool uses_default_port ();
-		[CCode (has_construct_function = false)]
-		public URI.with_base (Soup.URI @base, string uri_string);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[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);
-		public abstract uint get_proxy_sync (Soup.Message msg, GLib.Cancellable cancellable, out unowned Soup.Address addr);
+		public abstract uint get_proxy_sync (Soup.Message msg, GLib.Cancellable? cancellable, Soup.Address addr);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupProxyURIResolverInterface", type_id = "soup_proxy_uri_resolver_get_type ()")]
 	public interface ProxyURIResolver : GLib.Object {
-		public abstract void get_proxy_uri_async (Soup.URI uri, GLib.MainContext async_context, GLib.Cancellable cancellable, Soup.ProxyURIResolverCallback callback);
-		public abstract uint get_proxy_uri_sync (Soup.URI uri, GLib.Cancellable cancellable, out unowned Soup.URI proxy_uri);
+		public abstract void get_proxy_uri_async (Soup.URI uri, GLib.MainContext? async_context, GLib.Cancellable? cancellable, [CCode (delegate_target_pos = 4.1)] Soup.ProxyURIResolverCallback callback);
+		public abstract uint get_proxy_uri_sync (Soup.URI uri, GLib.Cancellable? cancellable, Soup.URI proxy_uri);
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", type_cname = "SoupSessionFeatureInterface", type_id = "soup_session_feature_get_type ()")]
 	public interface SessionFeature : GLib.Object {
 		public abstract void attach (Soup.Session session);
 		public abstract void detach (Soup.Session session);
@@ -630,6 +649,27 @@ namespace Soup {
 		[NoWrapper]
 		public abstract void request_unqueued (Soup.Session session, Soup.Message msg);
 	}
+	[CCode (type_id = "SOUP_TYPE_CONNECTION", cheader_filename = "libsoup/soup.h")]
+	public struct Connection {
+	}
+	[CCode (type_id = "SOUP_TYPE_MESSAGE_HEADERS_ITER", cheader_filename = "libsoup/soup.h")]
+	public struct MessageHeadersIter {
+		[CCode (array_length = false, array_null_terminated = true)]
+		public weak void*[] dummy;
+		public void init (Soup.MessageHeaders hdrs);
+		public bool next (out unowned string name, out unowned string value);
+	}
+	[CCode (type_id = "SOUP_TYPE_MESSAGE_QUEUE", cheader_filename = "libsoup/soup.h")]
+	public struct MessageQueue {
+	}
+	[CCode (type_id = "SOUP_TYPE_MESSAGE_QUEUE_ITEM", cheader_filename = "libsoup/soup.h")]
+	public struct MessageQueueItem {
+	}
+	[CCode (type_id = "SOUP_TYPE_RANGE", cheader_filename = "libsoup/soup.h")]
+	public struct Range {
+		public int64 start;
+		public int64 end;
+	}
 	[CCode (cprefix = "SOUP_ADDRESS_FAMILY_", cheader_filename = "libsoup/soup.h")]
 	public enum AddressFamily {
 		INVALID,
@@ -678,8 +718,10 @@ namespace Soup {
 	}
 	[CCode (cprefix = "SOUP_HTTP_", cheader_filename = "libsoup/soup.h")]
 	public enum HTTPVersion {
-		@1_0,
-		@1_1
+		[CCode (cname = "SOUP_HTTP_1_0")]
+		@0,
+		[CCode (cname = "SOUP_HTTP_1_1")]
+		@1
 	}
 	[CCode (cprefix = "SOUP_STATUS_", cheader_filename = "libsoup/soup.h")]
 	public enum KnownStatusCode {
@@ -774,13 +816,6 @@ namespace Soup {
 		RESPONSE,
 		MULTIPART
 	}
-	[CCode (cprefix = "SOUP_SSL_ERROR_", cheader_filename = "libsoup/soup.h")]
-	public enum SSLError {
-		HANDSHAKE_NEEDS_READ,
-		HANDSHAKE_NEEDS_WRITE,
-		CERTIFICATE,
-		HANDSHAKE_FAILED
-	}
 	[CCode (cprefix = "SOUP_SOCKET_", cheader_filename = "libsoup/soup.h")]
 	public enum SocketIOStatus {
 		OK,
@@ -788,33 +823,41 @@ namespace Soup {
 		EOF,
 		ERROR
 	}
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public delegate void AddressCallback (Soup.Address addr, uint status);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cprefix = "SOUP_SSL_ERROR_", cheader_filename = "libsoup/soup.h")]
+	public errordomain SSLError {
+		HANDSHAKE_NEEDS_READ,
+		HANDSHAKE_NEEDS_WRITE,
+		CERTIFICATE,
+		HANDSHAKE_FAILED,
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libsoup/soup.h", has_target = false)]
+	public delegate void AddressCallback (Soup.Address addr, uint status, void* data);
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
 	public delegate bool AuthDomainBasicAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username, string password);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public delegate unowned string AuthDomainDigestAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 3.9)]
+	public delegate string AuthDomainDigestAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username);
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
 	public delegate bool AuthDomainFilter (Soup.AuthDomain domain, Soup.Message msg);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 3.9)]
 	public delegate bool AuthDomainGenericAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public delegate unowned Soup.Buffer ChunkAllocator (Soup.Message msg, size_t max_len);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
+	public delegate Soup.Buffer ChunkAllocator (Soup.Message msg, size_t max_len);
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
 	public delegate Soup.LoggerLogLevel LoggerFilter (Soup.Logger logger, Soup.Message msg);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 4.9)]
 	public delegate void LoggerPrinter (Soup.Logger logger, Soup.LoggerLogLevel level, char direction, string data);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
 	public delegate void MessageHeadersForeachFunc (string name, string value);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public delegate void ProxyResolverCallback (Soup.ProxyResolver p1, Soup.Message p2, uint p3, Soup.Address p4);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", has_target = false)]
+	public delegate void ProxyResolverCallback (Soup.ProxyResolver arg0, Soup.Message arg1, uint arg2, Soup.Address arg3, void* arg4);
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 3.9)]
 	public delegate void ProxyURIResolverCallback (Soup.ProxyURIResolver resolver, uint status, Soup.URI proxy_uri);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public delegate void ServerCallback (Soup.Server server, Soup.Message msg, string path, GLib.HashTable<string,string> query, Soup.ClientContext client);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 5.9)]
+	public delegate void ServerCallback (Soup.Server server, Soup.Message msg, string path, GLib.HashTable<weak string,weak string>? query, Soup.ClientContext client);
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
 	public delegate void SessionCallback (Soup.Session session, Soup.Message msg);
-	[CCode (cheader_filename = "libsoup/soup.h")]
+	[CCode (cheader_filename = "libsoup/soup.h", instance_pos = 2.9)]
 	public delegate void SocketCallback (Soup.Socket sock, uint status);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const int ADDRESS_ANY_PORT;
@@ -913,8 +956,6 @@ namespace Soup {
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const string FORM_MIME_TYPE_URLENCODED;
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public const int H;
-	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const int HEADERS_H;
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const int LOGGER_H;
@@ -935,6 +976,14 @@ namespace Soup {
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const string MESSAGE_REASON_PHRASE;
 	[CCode (cheader_filename = "libsoup/soup.h")]
+	public const string MESSAGE_REQUEST_BODY;
+	[CCode (cheader_filename = "libsoup/soup.h")]
+	public const string MESSAGE_REQUEST_HEADERS;
+	[CCode (cheader_filename = "libsoup/soup.h")]
+	public const string MESSAGE_RESPONSE_BODY;
+	[CCode (cheader_filename = "libsoup/soup.h")]
+	public const string MESSAGE_RESPONSE_HEADERS;
+	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const string MESSAGE_SERVER_SIDE;
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const string MESSAGE_STATUS_CODE;
@@ -1037,78 +1086,42 @@ namespace Soup {
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public const int XMLRPC_H;
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned GLib.TimeoutSource add_completion (GLib.MainContext async_context, GLib.SourceFunc function, void* data);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned GLib.TimeoutSource add_idle (GLib.MainContext async_context, GLib.SourceFunc function, void* data);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned GLib.TimeoutSource add_timeout (GLib.MainContext async_context, uint interval, GLib.SourceFunc function, void* data);
-	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static GLib.SList<Soup.Cookie> cookies_from_request (Soup.Message msg);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static GLib.SList<Soup.Cookie> cookies_from_response (Soup.Message msg);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned string cookies_to_cookie_header (GLib.SList<Soup.Cookie> cookies);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void cookies_to_request (GLib.SList<Soup.Cookie> cookies, Soup.Message msg);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void cookies_to_response (GLib.SList<Soup.Cookie> cookies, Soup.Message msg);
-	[Deprecated (since = "vala-0.12", replacement = "Form.decode")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static GLib.HashTable<string,string> form_decode (string encoded_form);
-	[Deprecated (since = "vala-0.12", replacement = "Form.decode_multipart")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	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")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static string form_encode (...);
-	[Deprecated (since = "vala-0.12", replacement = "Form.encode_datalist")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static string form_encode_datalist (void* form_data_set);
-	[Deprecated (since = "vala-0.12", replacement = "Form.encode_hash")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static string form_encode_hash (GLib.HashTable<string,string> form_data_set);
-	[Deprecated (since = "vala-0.12")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static string form_encode_valist (string first_field, void* args);
-	[Deprecated (since = "vala-0.12", replacement = "Form.request_new")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static Soup.Message form_request_new (string method, string uri, ...);
-	[Deprecated (since = "vala-0.12", replacement = "Form.request_new_from_datalist")]
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	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")]
+	public static string cookies_to_cookie_header (GLib.SList<weak Soup.Cookie> cookies);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	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")]
+	public static void cookies_to_request (GLib.SList<weak Soup.Cookie> cookies, Soup.Message msg);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static Soup.Message form_request_new_from_multipart (string uri, Soup.Multipart multipart);
+	public static void cookies_to_response (GLib.SList<weak Soup.Cookie> cookies, Soup.Message msg);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static bool header_contains (string header, string token);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void header_g_string_append_param (GLib.StringBuilder str, string name, string value);
+	public static void header_free_param_list (GLib.HashTable<weak string,weak string> param_list);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void header_g_string_append_param_quoted (GLib.StringBuilder str, string name, string value);
+	public static void header_g_string_append_param (GLib.StringBuilder string, string name, string value);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static GLib.SList<string> header_parse_list (string header);
+	public static void header_g_string_append_param_quoted (GLib.StringBuilder string, string name, string value);
+	[CCode (cheader_filename = "libsoup/soup.h")]
+	public static GLib.SList<void*> header_parse_list (string header);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static GLib.HashTable<string,string> header_parse_param_list (string header);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static GLib.SList<string> header_parse_quality_list (string header, GLib.SList<string> unacceptable);
+	public static GLib.SList<void*> header_parse_quality_list (string header, out GLib.SList<void*> unacceptable);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static GLib.HashTable<string,string> header_parse_semi_param_list (string header);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static bool headers_parse (string str, int len, Soup.MessageHeaders dest);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static uint headers_parse_request (string str, int len, Soup.MessageHeaders req_headers, out unowned string req_method, out unowned string req_path, Soup.HTTPVersion ver);
+	public static uint headers_parse_request (string str, int len, Soup.MessageHeaders req_headers, out string req_method, out string req_path, out Soup.HTTPVersion ver);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static bool headers_parse_response (string str, int len, Soup.MessageHeaders headers, Soup.HTTPVersion ver, uint status_code, out unowned string reason_phrase);
+	public static bool headers_parse_response (string str, int len, Soup.MessageHeaders headers, out Soup.HTTPVersion ver, out uint status_code, out string reason_phrase);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static bool headers_parse_status_line (string status_line, Soup.HTTPVersion ver, uint status_code, out unowned string reason_phrase);
+	public static bool headers_parse_status_line (string status_line, out Soup.HTTPVersion ver, out uint status_code, out string reason_phrase);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static GLib.Quark http_error_quark ();
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static GLib.Quark ssl_error_quark ();
-	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static unowned string status_get_phrase (uint status_code);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static uint status_proxify (uint status_code);
@@ -1117,71 +1130,9 @@ namespace Soup {
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static uint str_case_hash (void* key);
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void value_array_append (GLib.ValueArray array, GLib.Type type);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void value_array_append_vals (GLib.ValueArray array, ...);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned GLib.ValueArray value_array_from_args (void* args);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static bool value_array_get_nth (GLib.ValueArray array, uint index_, GLib.Type type);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void value_array_insert (GLib.ValueArray array, uint index_, GLib.Type type);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned GLib.ValueArray value_array_new ();
+	public static GLib.ValueArray value_array_new ();
 	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static unowned GLib.ValueArray value_array_new_with_vals (...);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static bool value_array_to_args (GLib.ValueArray array, void* args);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void value_hash_insert (GLib.HashTable<string,GLib.Value> hash, string key, GLib.Type type, ...);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void value_hash_insert_vals (GLib.HashTable<string,GLib.Value> hash, ...);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static void value_hash_insert_value (GLib.HashTable<string,GLib.Value> hash, string key, GLib.Value value);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static bool value_hash_lookup (GLib.HashTable<string,GLib.Value> hash, string key, GLib.Type type);
-	[CCode (cheader_filename = "libsoup/soup.h")]
-	public static bool value_hash_lookup_vals (GLib.HashTable<string,GLib.Value> hash, ...);
+	public static void value_hash_insert_value (GLib.HashTable<weak string,weak GLib.Value> hash, string key, GLib.Value value);
 	[CCode (cheader_filename = "libsoup/soup.h")]
 	public static GLib.HashTable<string,GLib.Value> value_hash_new ();
-	[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/metadata/Soup-2.4.metadata b/vapi/metadata/Soup-2.4.metadata
new file mode 100644
index 0000000..e8aa7dc
--- /dev/null
+++ b/vapi/metadata/Soup-2.4.metadata
@@ -0,0 +1,18 @@
+// Vala-specific
+AuthDomain
+	.add_path#method skip
+	.remove_path#method skip
+form_* parent="Soup.Form" name="form_(.+)" skip=false
+Session
+	.add_feature#method skip
+	.add_feature_by_type#method skip
+	.remove_feature_by_type#method skip
+xmlrpc_* parent="Soup.XMLRPC" name="xmlrpc_(.+)" skip=false
+XMLRPCFault parent="Soup.XMLRPC" name="Fault"
+XMLRPCError parent="Soup.XMLRPC" name="Error"
+
+// Report upstream
+Soup cheader_filename="libsoup/soup.h"
+Buffer.new.data type="uint8[]" array_length_idx=2
+Buffer.new_with_owner.data type="uint8[]" array_length_idx=1
+CookieJar.all_cookies type_arguments="Cookie"
\ No newline at end of file



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