[vala] libsoup-2.4: update to 2.30.0
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] libsoup-2.4: update to 2.30.0
- Date: Fri, 9 Apr 2010 08:40:41 +0000 (UTC)
commit 1c31074ed8a27a91cc794c5ebf26c64fcb0fda75
Author: Evan Nemerson <evan coeus-group com>
Date: Wed Apr 7 11:51:54 2010 -0700
libsoup-2.4: update to 2.30.0
Fixes bug 615047.
vapi/libsoup-2.4.vapi | 99 ++++++++-
vapi/packages/libsoup-2.4/libsoup-2.4.gi | 291 +++++++++++++++++++++++-
vapi/packages/libsoup-2.4/libsoup-2.4.metadata | 6 +-
3 files changed, 389 insertions(+), 7 deletions(-)
---
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index dd83ee5..8568abd 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -47,6 +47,7 @@ namespace Soup {
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);
}
[CCode (cheader_filename = "libsoup/soup.h")]
public class AuthDomain : GLib.Object {
@@ -120,6 +121,17 @@ namespace Soup {
public unowned string get_host ();
public unowned Soup.Socket get_socket ();
}
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public class ContentDecoder : GLib.Object, Soup.SessionFeature {
+ }
+ [CCode (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);
+ }
[Compact]
[CCode (copy_function = "soup_cookie_copy", type_id = "SOUP_TYPE_COOKIE", cheader_filename = "libsoup/soup.h")]
public class Cookie {
@@ -134,6 +146,7 @@ namespace Soup {
public Cookie (string name, string value, string domain, string path, int max_age);
public bool applies_to_uri (Soup.URI uri);
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 set_domain (string domain);
@@ -154,9 +167,13 @@ namespace Soup {
public void add_cookie (Soup.Cookie cookie);
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 virtual void save ();
+ public void set_accept_policy (Soup.CookieJarAcceptPolicy policy);
public void set_cookie (Soup.URI uri, string cookie);
+ public void set_cookie_with_first_party (Soup.URI uri, Soup.URI first_party, string cookie);
+ public Soup.CookieJarAcceptPolicy accept_policy { get; set; }
[NoAccessorMethod]
public bool read_only { get; construct; }
public virtual signal void changed (Soup.Cookie old_cookie, Soup.Cookie new_cookie);
@@ -211,14 +228,17 @@ namespace Soup {
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);
public unowned Soup.Address get_address ();
+ public unowned Soup.URI get_first_party ();
public Soup.MessageFlags get_flags ();
public Soup.HTTPVersion get_http_version ();
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_flags (Soup.MessageFlags flags);
public void set_http_version (Soup.HTTPVersion version);
public void set_request (string content_type, Soup.MemoryUse req_use, string req_body, size_t req_length);
@@ -226,6 +246,7 @@ namespace Soup {
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);
+ public Soup.URI first_party { get; set; }
public Soup.MessageFlags flags { get; set; }
public Soup.HTTPVersion http_version { get; set; }
[NoAccessorMethod]
@@ -238,6 +259,8 @@ namespace Soup {
public uint status_code { get; set; }
public Soup.URI uri { get; set; }
[HasEmitter]
+ public virtual signal void content_sniffed (string p0, GLib.HashTable p1);
+ [HasEmitter]
public virtual signal void finished ();
[HasEmitter]
public virtual signal void got_body ();
@@ -292,9 +315,11 @@ namespace Soup {
public bool get_content_disposition (out string disposition, out GLib.HashTable? @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? @params);
+ public unowned string get_content_type (out GLib.HashTable<string,string>? @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 void remove (string name);
public void replace (string name, string value);
@@ -371,15 +396,25 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public class Session : GLib.Object {
public void abort ();
+ [NoWrapper]
+ public virtual void auth_required (Soup.Message msg, Soup.Auth auth, bool retrying);
public virtual void cancel_message (Soup.Message msg, uint status_code);
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 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 void remove_feature (Soup.SessionFeature feature);
public virtual void requeue_message (Soup.Message msg);
public virtual uint send_message (Soup.Message msg);
public void unpause_message (Soup.Message msg);
[NoAccessorMethod]
+ public string accept_language { owned get; set; }
+ [NoAccessorMethod]
+ public bool accept_language_auto { get; set; }
+ [NoAccessorMethod]
public Soup.SessionFeature add_feature { owned get; set; }
[NoAccessorMethod]
public GLib.Type add_feature_by_type { get; set; }
@@ -397,15 +432,19 @@ namespace Soup {
[NoAccessorMethod]
public string ssl_ca_file { owned get; set; }
[NoAccessorMethod]
+ public bool ssl_strict { get; set; }
+ [NoAccessorMethod]
public uint timeout { get; set; }
[NoAccessorMethod]
public bool use_ntlm { get; set; }
[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 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);
}
[CCode (cheader_filename = "libsoup/soup.h")]
public class SessionAsync : Soup.Session {
@@ -428,6 +467,7 @@ namespace Soup {
public void connect_async (GLib.Cancellable cancellable, Soup.SocketCallback callback);
public uint connect_sync (GLib.Cancellable cancellable);
public void disconnect ();
+ public int get_fd ();
public unowned Soup.Address get_local_address ();
public unowned Soup.Address get_remote_address ();
public bool is_connected ();
@@ -449,7 +489,11 @@ namespace Soup {
[NoAccessorMethod]
public void* ssl_creds { get; set; }
[NoAccessorMethod]
+ public bool ssl_strict { get; construct; }
+ [NoAccessorMethod]
public uint timeout { get; set; }
+ [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 readable ();
@@ -469,9 +513,12 @@ namespace Soup {
[CCode (has_construct_function = false)]
public URI (string uri_string);
public Soup.URI copy ();
+ public unowned Soup.URI copy_host ();
public static string decode (string part);
public static string encode (string part, string? escape_extra);
public bool equal (Soup.URI uri2);
+ public static bool host_equal (void* v1, void* v2);
+ public static uint host_hash (void* key);
public static string normalize (string part, string unescape_extra);
public void set_fragment (string fragment);
public void set_host (string host);
@@ -494,6 +541,11 @@ namespace Soup {
public abstract uint get_proxy_sync (Soup.Message msg, GLib.Cancellable cancellable, out unowned Soup.Address addr);
}
[CCode (cheader_filename = "libsoup/soup.h")]
+ 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);
+ }
+ [CCode (cheader_filename = "libsoup/soup.h")]
public interface SessionFeature : GLib.Object {
public abstract void attach (Soup.Session session);
public abstract void detach (Soup.Session session);
@@ -510,6 +562,21 @@ namespace Soup {
IPV4,
IPV6
}
+ [CCode (cprefix = "SOUP_CONNECTION_", cheader_filename = "libsoup/soup.h")]
+ public enum ConnectionState {
+ NEW,
+ CONNECTING,
+ IDLE,
+ IN_USE,
+ REMOTE_DISCONNECTED,
+ DISCONNECTED
+ }
+ [CCode (cprefix = "SOUP_COOKIE_JAR_ACCEPT_", cheader_filename = "libsoup/soup.h")]
+ public enum CookieJarAcceptPolicy {
+ ALWAYS,
+ NEVER,
+ NO_THIRD_PARTY
+ }
[CCode (cprefix = "SOUP_DATE_", cheader_filename = "libsoup/soup.h")]
public enum DateFormat {
HTTP,
@@ -621,8 +688,10 @@ namespace Soup {
[CCode (cprefix = "SOUP_MESSAGE_", cheader_filename = "libsoup/soup.h")]
[Flags]
public enum MessageFlags {
+ NO_REDIRECT,
OVERWRITE_CHUNKS,
- NO_REDIRECT
+ CONTENT_DECODED,
+ CERTIFICATE_TRUSTED
}
[CCode (cprefix = "SOUP_MESSAGE_HEADERS_", cheader_filename = "libsoup/soup.h")]
public enum MessageHeadersType {
@@ -682,6 +751,8 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h", has_target = false)]
public delegate void ProxyResolverCallback (Soup.ProxyResolver p1, Soup.Message p2, uint p3, Soup.Address p4, void* p5);
[CCode (cheader_filename = "libsoup/soup.h")]
+ 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")]
public delegate void SessionCallback (Soup.Session session, Soup.Message msg);
@@ -700,8 +771,6 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const string ADDRESS_SOCKADDR;
[CCode (cheader_filename = "libsoup/soup.h")]
- public const int AF_INET6;
- [CCode (cheader_filename = "libsoup/soup.h")]
public const string AUTH_DOMAIN_ADD_PATH;
[CCode (cheader_filename = "libsoup/soup.h")]
public const string AUTH_DOMAIN_BASIC_AUTH_CALLBACK;
@@ -744,8 +813,14 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const string AUTH_SCHEME_NAME;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const int CONTENT_DECODER_H;
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public const int CONTENT_SNIFFER_H;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const int COOKIE_H;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const string COOKIE_JAR_ACCEPT_POLICY;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const int COOKIE_JAR_H;
[CCode (cheader_filename = "libsoup/soup.h")]
public const string COOKIE_JAR_READ_ONLY;
@@ -778,6 +853,8 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const int MESSAGE_BODY_H;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const string MESSAGE_FIRST_PARTY;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const string MESSAGE_FLAGS;
[CCode (cheader_filename = "libsoup/soup.h")]
public const int MESSAGE_H;
@@ -802,8 +879,12 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const int MULTIPART_H;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const int PASSWORD_MANAGER_H;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const int PROXY_RESOLVER_H;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const int PROXY_URI_RESOLVER_H;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const string SERVER_ASYNC_CONTEXT;
[CCode (cheader_filename = "libsoup/soup.h")]
public const int SERVER_H;
@@ -820,6 +901,10 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const string SERVER_SSL_KEY_FILE;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const string SESSION_ACCEPT_LANGUAGE;
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public const string SESSION_ACCEPT_LANGUAGE_AUTO;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const string SESSION_ADD_FEATURE;
[CCode (cheader_filename = "libsoup/soup.h")]
public const string SESSION_ADD_FEATURE_BY_TYPE;
@@ -844,6 +929,8 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const string SESSION_SSL_CA_FILE;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const string SESSION_SSL_STRICT;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const int SESSION_SYNC_H;
[CCode (cheader_filename = "libsoup/soup.h")]
public const string SESSION_TIMEOUT;
@@ -866,8 +953,12 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h")]
public const string SOCKET_SSL_CREDENTIALS;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const string SOCKET_SSL_STRICT;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const string SOCKET_TIMEOUT;
[CCode (cheader_filename = "libsoup/soup.h")]
+ public const string SOCKET_TRUSTED_CERTIFICATE;
+ [CCode (cheader_filename = "libsoup/soup.h")]
public const int STATUS_H;
[CCode (cheader_filename = "libsoup/soup.h")]
public const int TYPES_H;
diff --git a/vapi/packages/libsoup-2.4/libsoup-2.4.gi b/vapi/packages/libsoup-2.4/libsoup-2.4.gi
index e61ee29..d8f67fb 100644
--- a/vapi/packages/libsoup-2.4/libsoup-2.4.gi
+++ b/vapi/packages/libsoup-2.4/libsoup-2.4.gi
@@ -539,6 +539,15 @@
<parameter name="p5" type="gpointer"/>
</parameters>
</callback>
+ <callback name="SoupProxyURIResolverCallback">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="resolver" type="SoupProxyURIResolver*"/>
+ <parameter name="status" type="guint"/>
+ <parameter name="proxy_uri" type="SoupURI*"/>
+ <parameter name="user_data" type="gpointer"/>
+ </parameters>
+ </callback>
<callback name="SoupServerCallback">
<return-type type="void"/>
<parameters>
@@ -683,6 +692,13 @@
<parameter name="cookie" type="SoupCookie*"/>
</parameters>
</method>
+ <method name="domain_matches" symbol="soup_cookie_domain_matches">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="cookie" type="SoupCookie*"/>
+ <parameter name="host" type="char*"/>
+ </parameters>
+ </method>
<method name="equal" symbol="soup_cookie_equal">
<return-type type="gboolean"/>
<parameters>
@@ -1032,6 +1048,20 @@
<parameter name="hdrs" type="SoupMessageHeaders*"/>
</parameters>
</method>
+ <method name="get_list" symbol="soup_message_headers_get_list">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="hdrs" type="SoupMessageHeaders*"/>
+ <parameter name="name" type="char*"/>
+ </parameters>
+ </method>
+ <method name="get_one" symbol="soup_message_headers_get_one">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="hdrs" type="SoupMessageHeaders*"/>
+ <parameter name="name" type="char*"/>
+ </parameters>
+ </method>
<method name="get_ranges" symbol="soup_message_headers_get_ranges">
<return-type type="gboolean"/>
<parameters>
@@ -1202,6 +1232,12 @@
<parameter name="uri" type="SoupURI*"/>
</parameters>
</method>
+ <method name="copy_host" symbol="soup_uri_copy_host">
+ <return-type type="SoupURI*"/>
+ <parameters>
+ <parameter name="uri" type="SoupURI*"/>
+ </parameters>
+ </method>
<method name="decode" symbol="soup_uri_decode">
<return-type type="char*"/>
<parameters>
@@ -1228,6 +1264,19 @@
<parameter name="uri" type="SoupURI*"/>
</parameters>
</method>
+ <method name="host_equal" symbol="soup_uri_host_equal">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="v1" type="gconstpointer"/>
+ <parameter name="v2" type="gconstpointer"/>
+ </parameters>
+ </method>
+ <method name="host_hash" symbol="soup_uri_host_hash">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="key" type="gconstpointer"/>
+ </parameters>
+ </method>
<constructor name="new" symbol="soup_uri_new">
<return-type type="SoupURI*"/>
<parameters>
@@ -1345,6 +1394,19 @@
<member name="SOUP_ADDRESS_FAMILY_IPV4" value="2"/>
<member name="SOUP_ADDRESS_FAMILY_IPV6" value="10"/>
</enum>
+ <enum name="SoupConnectionState" type-name="SoupConnectionState" get-type="soup_connection_state_get_type">
+ <member name="SOUP_CONNECTION_NEW" value="0"/>
+ <member name="SOUP_CONNECTION_CONNECTING" value="1"/>
+ <member name="SOUP_CONNECTION_IDLE" value="2"/>
+ <member name="SOUP_CONNECTION_IN_USE" value="3"/>
+ <member name="SOUP_CONNECTION_REMOTE_DISCONNECTED" value="4"/>
+ <member name="SOUP_CONNECTION_DISCONNECTED" value="5"/>
+ </enum>
+ <enum name="SoupCookieJarAcceptPolicy" type-name="SoupCookieJarAcceptPolicy" get-type="soup_cookie_jar_accept_policy_get_type">
+ <member name="SOUP_COOKIE_JAR_ACCEPT_ALWAYS" value="0"/>
+ <member name="SOUP_COOKIE_JAR_ACCEPT_NEVER" value="1"/>
+ <member name="SOUP_COOKIE_JAR_ACCEPT_NO_THIRD_PARTY" value="2"/>
+ </enum>
<enum name="SoupDateFormat" type-name="SoupDateFormat" get-type="soup_date_format_get_type">
<member name="SOUP_DATE_HTTP" value="1"/>
<member name="SOUP_DATE_COOKIE" value="2"/>
@@ -1478,8 +1540,10 @@
<member name="SOUP_EXPECTATION_CONTINUE" value="2"/>
</flags>
<flags name="SoupMessageFlags" type-name="SoupMessageFlags" get-type="soup_message_flags_get_type">
- <member name="SOUP_MESSAGE_OVERWRITE_CHUNKS" value="8"/>
<member name="SOUP_MESSAGE_NO_REDIRECT" value="2"/>
+ <member name="SOUP_MESSAGE_OVERWRITE_CHUNKS" value="8"/>
+ <member name="SOUP_MESSAGE_CONTENT_DECODED" value="16"/>
+ <member name="SOUP_MESSAGE_CERTIFICATE_TRUSTED" value="32"/>
</flags>
<object name="SoupAddress" parent="GObject" type-name="SoupAddress" get-type="soup_address_get_type">
<method name="equal_by_ip" symbol="soup_address_equal_by_ip">
@@ -1670,6 +1734,14 @@
<property name="is-for-proxy" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="realm" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="scheme-name" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
+ <signal name="save-password" when="FIRST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="object" type="SoupAuth*"/>
+ <parameter name="p0" type="char*"/>
+ <parameter name="p1" type="char*"/>
+ </parameters>
+ </signal>
<vfunc name="authenticate">
<return-type type="void"/>
<parameters>
@@ -1864,6 +1936,43 @@
<property name="auth-callback" type="gpointer" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="auth-data" type="gpointer" readable="1" writable="1" construct="0" construct-only="0"/>
</object>
+ <object name="SoupContentDecoder" parent="GObject" type-name="SoupContentDecoder" get-type="soup_content_decoder_get_type">
+ <implements>
+ <interface name="SoupSessionFeature"/>
+ </implements>
+ </object>
+ <object name="SoupContentSniffer" parent="GObject" type-name="SoupContentSniffer" get-type="soup_content_sniffer_get_type">
+ <implements>
+ <interface name="SoupSessionFeature"/>
+ </implements>
+ <constructor name="new" symbol="soup_content_sniffer_new">
+ <return-type type="SoupContentSniffer*"/>
+ </constructor>
+ <method name="sniff" symbol="soup_content_sniffer_sniff">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="sniffer" type="SoupContentSniffer*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="buffer" type="SoupBuffer*"/>
+ <parameter name="params" type="GHashTable**"/>
+ </parameters>
+ </method>
+ <vfunc name="get_buffer_size">
+ <return-type type="gsize"/>
+ <parameters>
+ <parameter name="sniffer" type="SoupContentSniffer*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="sniff">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="sniffer" type="SoupContentSniffer*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="buffer" type="SoupBuffer*"/>
+ <parameter name="params" type="GHashTable**"/>
+ </parameters>
+ </vfunc>
+ </object>
<object name="SoupCookieJar" parent="GObject" type-name="SoupCookieJar" get-type="soup_cookie_jar_get_type">
<implements>
<interface name="SoupSessionFeature"/>
@@ -1888,6 +1997,12 @@
<parameter name="cookie" type="SoupCookie*"/>
</parameters>
</method>
+ <method name="get_accept_policy" symbol="soup_cookie_jar_get_accept_policy">
+ <return-type type="SoupCookieJarAcceptPolicy"/>
+ <parameters>
+ <parameter name="jar" type="SoupCookieJar*"/>
+ </parameters>
+ </method>
<method name="get_cookies" symbol="soup_cookie_jar_get_cookies">
<return-type type="char*"/>
<parameters>
@@ -1905,6 +2020,13 @@
<parameter name="jar" type="SoupCookieJar*"/>
</parameters>
</method>
+ <method name="set_accept_policy" symbol="soup_cookie_jar_set_accept_policy">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="jar" type="SoupCookieJar*"/>
+ <parameter name="policy" type="SoupCookieJarAcceptPolicy"/>
+ </parameters>
+ </method>
<method name="set_cookie" symbol="soup_cookie_jar_set_cookie">
<return-type type="void"/>
<parameters>
@@ -1913,6 +2035,16 @@
<parameter name="cookie" type="char*"/>
</parameters>
</method>
+ <method name="set_cookie_with_first_party" symbol="soup_cookie_jar_set_cookie_with_first_party">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="jar" type="SoupCookieJar*"/>
+ <parameter name="uri" type="SoupURI*"/>
+ <parameter name="first_party" type="SoupURI*"/>
+ <parameter name="cookie" type="char*"/>
+ </parameters>
+ </method>
+ <property name="accept-policy" type="SoupCookieJarAcceptPolicy" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="read-only" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
<signal name="changed" when="FIRST">
<return-type type="void"/>
@@ -2016,6 +2148,21 @@
<parameter name="user_data" type="gpointer"/>
</parameters>
</method>
+ <method name="content_sniffed" symbol="soup_message_content_sniffed">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="content_type" type="char*"/>
+ <parameter name="params" type="GHashTable*"/>
+ </parameters>
+ </method>
+ <method name="disable_feature" symbol="soup_message_disable_feature">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="feature_type" type="GType"/>
+ </parameters>
+ </method>
<method name="finished" symbol="soup_message_finished">
<return-type type="void"/>
<parameters>
@@ -2028,6 +2175,12 @@
<parameter name="msg" type="SoupMessage*"/>
</parameters>
</method>
+ <method name="get_first_party" symbol="soup_message_get_first_party">
+ <return-type type="SoupURI*"/>
+ <parameters>
+ <parameter name="msg" type="SoupMessage*"/>
+ </parameters>
+ </method>
<method name="get_flags" symbol="soup_message_get_flags">
<return-type type="SoupMessageFlags"/>
<parameters>
@@ -2106,6 +2259,13 @@
<parameter name="destroy_notify" type="GDestroyNotify"/>
</parameters>
</method>
+ <method name="set_first_party" symbol="soup_message_set_first_party">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="first_party" type="SoupURI*"/>
+ </parameters>
+ </method>
<method name="set_flags" symbol="soup_message_set_flags">
<return-type type="void"/>
<parameters>
@@ -2193,6 +2353,7 @@
<parameter name="msg" type="SoupMessage*"/>
</parameters>
</method>
+ <property name="first-party" type="SoupURI*" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="flags" type="SoupMessageFlags" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="http-version" type="SoupHTTPVersion" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="method" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
@@ -2200,6 +2361,14 @@
<property name="server-side" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="status-code" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="uri" type="SoupURI*" readable="1" writable="1" construct="0" construct-only="0"/>
+ <signal name="content-sniffed" when="FIRST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="object" type="SoupMessage*"/>
+ <parameter name="p0" type="char*"/>
+ <parameter name="p1" type="GHashTable*"/>
+ </parameters>
+ </signal>
<signal name="finished" when="FIRST">
<return-type type="void"/>
<parameters>
@@ -2445,6 +2614,28 @@
<parameter name="session" type="SoupSession*"/>
</parameters>
</method>
+ <method name="get_feature" symbol="soup_session_get_feature">
+ <return-type type="SoupSessionFeature*"/>
+ <parameters>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="feature_type" type="GType"/>
+ </parameters>
+ </method>
+ <method name="get_feature_for_message" symbol="soup_session_get_feature_for_message">
+ <return-type type="SoupSessionFeature*"/>
+ <parameters>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="feature_type" type="GType"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ </parameters>
+ </method>
+ <method name="get_features" symbol="soup_session_get_features">
+ <return-type type="GSList*"/>
+ <parameters>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="feature_type" type="GType"/>
+ </parameters>
+ </method>
<method name="pause_message" symbol="soup_session_pause_message">
<return-type type="void"/>
<parameters>
@@ -2452,6 +2643,13 @@
<parameter name="msg" type="SoupMessage*"/>
</parameters>
</method>
+ <method name="prepare_for_uri" symbol="soup_session_prepare_for_uri">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="uri" type="SoupURI*"/>
+ </parameters>
+ </method>
<method name="queue_message" symbol="soup_session_queue_message">
<return-type type="void"/>
<parameters>
@@ -2496,6 +2694,8 @@
<parameter name="msg" type="SoupMessage*"/>
</parameters>
</method>
+ <property name="accept-language" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="accept-language-auto" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="add-feature" type="SoupSessionFeature*" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="add-feature-by-type" type="GType" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="async-context" type="gpointer" readable="1" writable="1" construct="0" construct-only="1"/>
@@ -2505,6 +2705,7 @@
<property name="proxy-uri" type="SoupURI*" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="remove-feature-by-type" type="GType" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="ssl-ca-file" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="ssl-strict" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="timeout" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="use-ntlm" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="user-agent" type="char*" readable="1" writable="1" construct="0" construct-only="0"/>
@@ -2517,6 +2718,13 @@
<parameter name="retrying" type="gboolean"/>
</parameters>
</signal>
+ <signal name="connection-created" when="FIRST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="object" type="SoupSession*"/>
+ <parameter name="p0" type="GObject*"/>
+ </parameters>
+ </signal>
<signal name="request-queued" when="FIRST">
<return-type type="void"/>
<parameters>
@@ -2539,6 +2747,22 @@
<parameter name="p0" type="SoupMessage*"/>
</parameters>
</signal>
+ <signal name="tunneling" when="FIRST">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="object" type="SoupSession*"/>
+ <parameter name="p0" type="GObject*"/>
+ </parameters>
+ </signal>
+ <vfunc name="auth_required">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="auth" type="SoupAuth*"/>
+ <parameter name="retrying" type="gboolean"/>
+ </parameters>
+ </vfunc>
<vfunc name="cancel_message">
<return-type type="void"/>
<parameters>
@@ -2616,6 +2840,12 @@
<parameter name="sock" type="SoupSocket*"/>
</parameters>
</method>
+ <method name="get_fd" symbol="soup_socket_get_fd">
+ <return-type type="int"/>
+ <parameters>
+ <parameter name="sock" type="SoupSocket*"/>
+ </parameters>
+ </method>
<method name="get_local_address" symbol="soup_socket_get_local_address">
<return-type type="SoupAddress*"/>
<parameters>
@@ -2709,7 +2939,9 @@
<property name="non-blocking" type="gboolean" readable="1" writable="1" construct="0" construct-only="0"/>
<property name="remote-address" type="SoupAddress*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="ssl-creds" type="gpointer" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="ssl-strict" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="timeout" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="trusted-certificate" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
<signal name="disconnected" when="LAST">
<return-type type="void"/>
<parameters>
@@ -2782,6 +3014,51 @@
</parameters>
</vfunc>
</interface>
+ <interface name="SoupProxyURIResolver" type-name="SoupProxyURIResolver" get-type="soup_proxy_uri_resolver_get_type">
+ <requires>
+ <interface name="GObject"/>
+ </requires>
+ <method name="get_proxy_uri_async" symbol="soup_proxy_uri_resolver_get_proxy_uri_async">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="proxy_uri_resolver" type="SoupProxyURIResolver*"/>
+ <parameter name="uri" type="SoupURI*"/>
+ <parameter name="async_context" type="GMainContext*"/>
+ <parameter name="cancellable" type="GCancellable*"/>
+ <parameter name="callback" type="SoupProxyURIResolverCallback"/>
+ <parameter name="user_data" type="gpointer"/>
+ </parameters>
+ </method>
+ <method name="get_proxy_uri_sync" symbol="soup_proxy_uri_resolver_get_proxy_uri_sync">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="proxy_uri_resolver" type="SoupProxyURIResolver*"/>
+ <parameter name="uri" type="SoupURI*"/>
+ <parameter name="cancellable" type="GCancellable*"/>
+ <parameter name="proxy_uri" type="SoupURI**"/>
+ </parameters>
+ </method>
+ <vfunc name="get_proxy_uri_async">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="p1" type="SoupProxyURIResolver*"/>
+ <parameter name="p2" type="SoupURI*"/>
+ <parameter name="p3" type="GMainContext*"/>
+ <parameter name="p4" type="GCancellable*"/>
+ <parameter name="p5" type="SoupProxyURIResolverCallback"/>
+ <parameter name="p6" type="gpointer"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="get_proxy_uri_sync">
+ <return-type type="guint"/>
+ <parameters>
+ <parameter name="p1" type="SoupProxyURIResolver*"/>
+ <parameter name="p2" type="SoupURI*"/>
+ <parameter name="p3" type="GCancellable*"/>
+ <parameter name="p4" type="SoupURI**"/>
+ </parameters>
+ </vfunc>
+ </interface>
<interface name="SoupSessionFeature" type-name="SoupSessionFeature" get-type="soup_session_feature_get_type">
<requires>
<interface name="GObject"/>
@@ -2840,7 +3117,6 @@
</parameters>
</vfunc>
</interface>
- <constant name="AF_INET6" type="int" value="-1"/>
<constant name="SOUP_ADDRESS_ANY_PORT" type="int" value="0"/>
<constant name="SOUP_ADDRESS_FAMILY" type="char*" value="family"/>
<constant name="SOUP_ADDRESS_NAME" type="char*" value="name"/>
@@ -2868,7 +3144,10 @@
<constant name="SOUP_AUTH_IS_FOR_PROXY" type="char*" value="is-for-proxy"/>
<constant name="SOUP_AUTH_REALM" type="char*" value="realm"/>
<constant name="SOUP_AUTH_SCHEME_NAME" type="char*" value="scheme-name"/>
+ <constant name="SOUP_CONTENT_DECODER_H" type="int" value="1"/>
+ <constant name="SOUP_CONTENT_SNIFFER_H" type="int" value="1"/>
<constant name="SOUP_COOKIE_H" type="int" value="1"/>
+ <constant name="SOUP_COOKIE_JAR_ACCEPT_POLICY" type="char*" value="accept-policy"/>
<constant name="SOUP_COOKIE_JAR_H" type="int" value="1"/>
<constant name="SOUP_COOKIE_JAR_READ_ONLY" type="char*" value="read-only"/>
<constant name="SOUP_COOKIE_JAR_TEXT_FILENAME" type="char*" value="filename"/>
@@ -2885,6 +3164,7 @@
<constant name="SOUP_HEADERS_H" type="int" value="1"/>
<constant name="SOUP_LOGGER_H" type="int" value="1"/>
<constant name="SOUP_MESSAGE_BODY_H" type="int" value="1"/>
+ <constant name="SOUP_MESSAGE_FIRST_PARTY" type="char*" value="first-party"/>
<constant name="SOUP_MESSAGE_FLAGS" type="char*" value="flags"/>
<constant name="SOUP_MESSAGE_H" type="int" value="1"/>
<constant name="SOUP_MESSAGE_HEADERS_H" type="int" value="1"/>
@@ -2897,7 +3177,9 @@
<constant name="SOUP_METHOD_H" type="int" value="1"/>
<constant name="SOUP_MISC_H" type="int" value="1"/>
<constant name="SOUP_MULTIPART_H" type="int" value="1"/>
+ <constant name="SOUP_PASSWORD_MANAGER_H" type="int" value="1"/>
<constant name="SOUP_PROXY_RESOLVER_H" type="int" value="1"/>
+ <constant name="SOUP_PROXY_URI_RESOLVER_H" type="int" value="1"/>
<constant name="SOUP_SERVER_ASYNC_CONTEXT" type="char*" value="async-context"/>
<constant name="SOUP_SERVER_H" type="int" value="1"/>
<constant name="SOUP_SERVER_INTERFACE" type="char*" value="interface"/>
@@ -2906,6 +3188,8 @@
<constant name="SOUP_SERVER_SERVER_HEADER" type="char*" value="server-header"/>
<constant name="SOUP_SERVER_SSL_CERT_FILE" type="char*" value="ssl-cert-file"/>
<constant name="SOUP_SERVER_SSL_KEY_FILE" type="char*" value="ssl-key-file"/>
+ <constant name="SOUP_SESSION_ACCEPT_LANGUAGE" type="char*" value="accept-language"/>
+ <constant name="SOUP_SESSION_ACCEPT_LANGUAGE_AUTO" type="char*" value="accept-language-auto"/>
<constant name="SOUP_SESSION_ADD_FEATURE" type="char*" value="add-feature"/>
<constant name="SOUP_SESSION_ADD_FEATURE_BY_TYPE" type="char*" value="add-feature-by-type"/>
<constant name="SOUP_SESSION_ASYNC_CONTEXT" type="char*" value="async-context"/>
@@ -2918,6 +3202,7 @@
<constant name="SOUP_SESSION_PROXY_URI" type="char*" value="proxy-uri"/>
<constant name="SOUP_SESSION_REMOVE_FEATURE_BY_TYPE" type="char*" value="remove-feature-by-type"/>
<constant name="SOUP_SESSION_SSL_CA_FILE" type="char*" value="ssl-ca-file"/>
+ <constant name="SOUP_SESSION_SSL_STRICT" type="char*" value="ssl-strict"/>
<constant name="SOUP_SESSION_SYNC_H" type="int" value="1"/>
<constant name="SOUP_SESSION_TIMEOUT" type="char*" value="timeout"/>
<constant name="SOUP_SESSION_USER_AGENT" type="char*" value="user-agent"/>
@@ -2929,7 +3214,9 @@
<constant name="SOUP_SOCKET_LOCAL_ADDRESS" type="char*" value="local-address"/>
<constant name="SOUP_SOCKET_REMOTE_ADDRESS" type="char*" value="remote-address"/>
<constant name="SOUP_SOCKET_SSL_CREDENTIALS" type="char*" value="ssl-creds"/>
+ <constant name="SOUP_SOCKET_SSL_STRICT" type="char*" value="ssl-strict"/>
<constant name="SOUP_SOCKET_TIMEOUT" type="char*" value="timeout"/>
+ <constant name="SOUP_SOCKET_TRUSTED_CERTIFICATE" type="char*" value="trusted-certificate"/>
<constant name="SOUP_STATUS_H" type="int" value="1"/>
<constant name="SOUP_TYPES_H" type="int" value="1"/>
<constant name="SOUP_URI_H" type="int" value="1"/>
diff --git a/vapi/packages/libsoup-2.4/libsoup-2.4.metadata b/vapi/packages/libsoup-2.4/libsoup-2.4.metadata
index 4ae8b06..5b0e2ad 100644
--- a/vapi/packages/libsoup-2.4/libsoup-2.4.metadata
+++ b/vapi/packages/libsoup-2.4/libsoup-2.4.metadata
@@ -18,6 +18,8 @@ soup_auth_domain_digest_set_auth_callback.callback transfer_ownership="1"
soup_auth_domain_digest_set_auth_callback.dnotify hidden="1"
SoupBuffer ref_function="soup_buffer_copy" unref_function="soup_buffer_free"
soup_buffer_copy transfer_ownership="1"
+soup_content_sniffer_sniff transfer_ownership="1"
+soup_content_sniffer_sniff.params is_out="1" transfer_ownership="1" nullable="1" type_arguments="string,string"
soup_cookie_copy transfer_ownership="1"
soup_cookies_free hidden="1"
soup_cookies_to_cookie_header.cookies type_arguments="Cookie"
@@ -47,6 +49,7 @@ soup_logger_set_request_filter.destroy hidden="1"
soup_logger_set_response_filter.response_filter transfer_ownership="1"
soup_logger_set_response_filter.filter_data hidden="1"
soup_logger_set_response_filter.destroy hidden="1"
+SoupMessage::content_sniffed has_emitter="1"
SoupMessage::finished has_emitter="1"
SoupMessage::got_body has_emitter="1"
SoupMessage::got_chunk has_emitter="1"
@@ -63,7 +66,7 @@ soup_cookies_from_response type_arguments="Cookie" transfer_ownership="1"
soup_header_parse_semi_param_list type_arguments="string,string" transfer_ownership="1"
soup_message_headers_get_content_disposition.disposition transfer_ownership="1"
soup_message_headers_get_content_disposition.params is_out="1" transfer_ownership="1" nullable="1"
-soup_message_headers_get_content_type.params is_out="1" transfer_ownership="1" nullable="1"
+soup_message_headers_get_content_type.params is_out="1" transfer_ownership="1" nullable="1" type_arguments="string,string"
soup_message_set_chunk_allocator.allocator transfer_ownership="1"
soup_message_set_chunk_allocator.destroy_notify hidden="1"
SoupMessageBody.data type_name="uint8" is_array="1"
@@ -76,6 +79,7 @@ SoupServerCallback.query type_arguments="string,string"
SoupSession::add_feature has_emitter="1"
SoupSession::add_feature_by_type has_emitter="1"
SoupSession::remove_feature_by_type has_emitter="1"
+soup_session_get_features transfer_ownership="1" type_arguments="unowned SessionFeature"
soup_session_queue_message.msg transfer_ownership="1"
soup_session_queue_message.callback nullable="1"
soup_session_async_new_with_options ellipsis="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]