vala r1027 - in trunk: . vapi vapi/packages/libsoup-2.4
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1027 - in trunk: . vapi vapi/packages/libsoup-2.4
- Date: Tue, 19 Feb 2008 20:06:09 +0000 (GMT)
Author: juergbi
Date: Tue Feb 19 20:06:09 2008
New Revision: 1027
URL: http://svn.gnome.org/viewvc/vala?rev=1027&view=rev
Log:
2008-02-19 Juerg Billeter <j bitron ch>
* vapi/packages/libsoup-2.4/: update to libsoup 2.3.2
* vapi/libsoup-2.4.vapi: regenerated
Modified:
trunk/ChangeLog
trunk/vapi/libsoup-2.4.vapi
trunk/vapi/packages/libsoup-2.4/libsoup-2.4.gi
Modified: trunk/vapi/libsoup-2.4.vapi
==============================================================================
--- trunk/vapi/libsoup-2.4.vapi (original)
+++ trunk/vapi/libsoup-2.4.vapi Tue Feb 19 20:06:09 2008
@@ -4,6 +4,7 @@
namespace Soup {
[CCode (cprefix = "SOUP_ADDRESS_FAMILY_", cheader_filename = "libsoup/soup.h")]
public enum AddressFamily {
+ INVALID,
IPV4,
IPV6,
}
@@ -158,15 +159,53 @@
OVERWRITE_CHUNKS,
}
[CCode (cheader_filename = "libsoup/soup.h")]
- public class ClientContext {
+ public class MessageHeadersIter {
+ [NoArrayLength]
+ public weak pointer[] dummy;
+ public void init (Soup.MessageHeaders hdrs);
+ public bool next (out weak string name, out weak string value);
+ }
+ [CCode (copy_function = "soup_buffer_copy", cheader_filename = "libsoup/soup.h")]
+ public class Buffer : GLib.Boxed {
+ public weak string data;
+ public ulong length;
+ public weak Soup.Buffer copy ();
+ public pointer get_owner ();
+ public Buffer (Soup.MemoryUse use, pointer data, ulong length);
+ public Buffer.subbuffer (Soup.Buffer parent, ulong offset, ulong length);
+ public Buffer.with_owner (pointer data, ulong length, pointer owner, GLib.DestroyNotify owner_dnotify);
+ }
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public class ByteArray : GLib.Boxed {
+ }
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public class ClientContext : GLib.Boxed {
public weak Soup.Address get_address ();
public weak Soup.AuthDomain get_auth_domain ();
public weak string get_auth_user ();
public weak string get_host ();
public weak Soup.Socket get_socket ();
}
+ [CCode (copy_function = "soup_date_copy", cheader_filename = "libsoup/soup.h")]
+ public class Date : GLib.Boxed {
+ public int year;
+ public int month;
+ public int day;
+ public int hour;
+ public int minute;
+ public int second;
+ public bool utc;
+ public int offset;
+ public weak Soup.Date copy ();
+ public Date (int year, int month, int day, int hour, int minute, int second);
+ public Date.from_now (int offset_seconds);
+ public Date.from_string (string date_string);
+ public Date.from_time_t (ulong when);
+ public weak string to_string (Soup.DateFormat format);
+ public ulong to_time_t ();
+ }
[CCode (cheader_filename = "libsoup/soup.h")]
- public class MessageBody {
+ public class MessageBody : GLib.Boxed {
public weak string data;
public int64 length;
public void append (Soup.MemoryUse use, pointer data, ulong length);
@@ -178,7 +217,7 @@
public void truncate ();
}
[CCode (cheader_filename = "libsoup/soup.h")]
- public class MessageHeaders {
+ public class MessageHeaders : GLib.Boxed {
public void append (string name, string value);
public void clear ();
public void @foreach (Soup.MessageHeadersForeachFunc func, pointer user_data);
@@ -193,34 +232,6 @@
public void set_encoding (Soup.Encoding encoding);
public void set_expectations (Soup.Expectation expectations);
}
- [CCode (cheader_filename = "libsoup/soup.h")]
- public class GByteArray : GLib.Boxed {
- }
- [CCode (copy_function = "soup_buffer_copy", cheader_filename = "libsoup/soup.h")]
- public class Buffer : GLib.Boxed {
- public weak string data;
- public ulong length;
- public weak Soup.Buffer copy ();
- public Buffer (Soup.MemoryUse use, pointer data, ulong length);
- public Buffer.subbuffer (Soup.Buffer parent, ulong offset, ulong length);
- }
- [CCode (copy_function = "soup_date_copy", cheader_filename = "libsoup/soup.h")]
- public class Date : GLib.Boxed {
- public int year;
- public int month;
- public int day;
- public int hour;
- public int minute;
- public int second;
- public bool utc;
- public int offset;
- public weak Soup.Date copy ();
- public Date (int year, int month, int day, int hour, int minute, int second);
- public Date.from_now (int offset_seconds);
- public Date.from_string (string date_string);
- public Date.from_time_t (ulong when);
- public weak string to_string (Soup.DateFormat format);
- }
[CCode (copy_function = "soup_uri_copy", cheader_filename = "libsoup/soup.h")]
public class URI : GLib.Boxed {
public weak string scheme;
@@ -244,6 +255,7 @@
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 form);
public void set_scheme (string scheme);
public void set_user (string user);
@@ -261,6 +273,15 @@
public Address.from_sockaddr (pointer sa, int len);
public void resolve_async (GLib.MainContext async_context, GLib.Cancellable cancellable, Soup.AddressCallback callback, pointer user_data);
public uint resolve_sync (GLib.Cancellable cancellable);
+ [NoAccessorMethod]
+ public weak Soup.AddressFamily family { get; construct; }
+ [NoAccessorMethod]
+ public weak string name { get; construct; }
+ public weak string physical { get; }
+ [NoAccessorMethod]
+ public weak int port { get; construct; }
+ [NoAccessorMethod]
+ public weak pointer sockaddr { get; construct; }
}
[CCode (cheader_filename = "libsoup/soup.h")]
public class Auth : GLib.Object {
@@ -351,6 +372,7 @@
public bool is_keepalive ();
public Message (string method, string uri_string);
public Message.from_uri (string method, Soup.URI uri);
+ public void set_chunk_allocator (Soup.ChunkAllocator allocator, pointer user_data, GLib.DestroyNotify destroy_notify);
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, ulong req_length);
@@ -413,13 +435,15 @@
[NoAccessorMethod]
public weak bool raw_paths { get; construct; }
[NoAccessorMethod]
+ public weak string server_header { get; set construct; }
+ [NoAccessorMethod]
public weak string ssl_cert_file { get; construct; }
[NoAccessorMethod]
public weak string ssl_key_file { get; construct; }
- public signal void request_aborted (Soup.Message p0, Soup.ClientContext p1);
- public signal void request_finished (Soup.Message p0, Soup.ClientContext p1);
- public signal void request_read (Soup.Message p0, Soup.ClientContext p1);
- public signal void request_started (Soup.Message p0, Soup.ClientContext p1);
+ public signal void request_aborted (Soup.Message msg, Soup.ClientContext client);
+ public signal void request_finished (Soup.Message msg, Soup.ClientContext client);
+ public signal void request_read (Soup.Message msg, Soup.ClientContext client);
+ public signal void request_started (Soup.Message msg, Soup.ClientContext client);
}
[CCode (cheader_filename = "libsoup/soup.h")]
public class Session : GLib.Object {
@@ -445,8 +469,10 @@
public weak uint timeout { get; set; }
[NoAccessorMethod]
public weak bool use_ntlm { get; set; }
- public signal void authenticate (Soup.Message p0, Soup.Auth p1, bool p2);
- public signal void request_started (Soup.Message p0, Soup.Socket p1);
+ [NoAccessorMethod]
+ public weak string user_agent { get; set; }
+ public signal void authenticate (Soup.Message msg, Soup.Auth auth, bool retrying);
+ public signal void request_started (Soup.Message msg, Soup.Socket socket);
}
[CCode (cheader_filename = "libsoup/soup.h")]
public class SessionAsync : Soup.Session {
@@ -498,6 +524,7 @@
public static delegate weak string AuthDomainDigestAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username, pointer user_data);
public static delegate bool AuthDomainFilter (Soup.AuthDomain domain, Soup.Message msg, pointer user_data);
public static delegate bool AuthDomainGenericAuthCallback (Soup.AuthDomain domain, Soup.Message msg, string username, pointer user_data);
+ public static delegate weak Soup.Buffer ChunkAllocator (Soup.Message msg, ulong max_len, pointer user_data);
public static delegate Soup.LoggerLogLevel LoggerFilter (Soup.Logger logger, Soup.Message msg, pointer user_data);
public static delegate void LoggerPrinter (Soup.Logger logger, Soup.LoggerLogLevel level, string direction, string data, pointer user_data);
public static delegate void MessageHeadersForeachFunc (string name, string value, pointer user_data);
@@ -506,6 +533,11 @@
public static delegate void SocketCallback (Soup.Socket sock, uint status, pointer user_data);
public const int AF_INET6;
public const int ADDRESS_ANY_PORT;
+ public const string ADDRESS_FAMILY;
+ public const string ADDRESS_NAME;
+ public const string ADDRESS_PHYSICAL;
+ public const string ADDRESS_PORT;
+ public const string ADDRESS_SOCKADDR;
public const string AUTH_DOMAIN_ADD_PATH;
public const string AUTH_DOMAIN_BASIC_AUTH_CALLBACK;
public const string AUTH_DOMAIN_BASIC_AUTH_DATA;
@@ -548,6 +580,7 @@
public const string SERVER_INTERFACE;
public const string SERVER_PORT;
public const string SERVER_RAW_PATHS;
+ public const string SERVER_SERVER_HEADER;
public const string SERVER_SSL_CERT_FILE;
public const string SERVER_SSL_KEY_FILE;
public const string SESSION_ASYNC_CONTEXT;
@@ -559,6 +592,7 @@
public const string SESSION_SSL_CA_FILE;
public const int SESSION_SYNC_H;
public const string SESSION_TIMEOUT;
+ public const string SESSION_USER_AGENT;
public const string SESSION_USE_NTLM;
public const string SOCKET_ASYNC_CONTEXT;
public const string SOCKET_FLAG_NONBLOCKING;
@@ -578,11 +612,21 @@
[CCode (cheader_filename = "libsoup/soup.h")]
public static weak GLib.Source add_timeout (GLib.MainContext async_context, uint interval, GLib.SourceFunc function, pointer data);
[CCode (cheader_filename = "libsoup/soup.h")]
- public static weak GLib.HashTable form_decode_urlencoded (string encoded_form);
+ public static weak GLib.HashTable form_decode (string encoded_form);
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public static weak string form_encode (...);
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public static weak string form_encode_datalist (out weak GLib.Data form_data_set);
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public static weak string form_encode_hash (GLib.HashTable form_data_set);
[CCode (cheader_filename = "libsoup/soup.h")]
- public static weak string form_encode_urlencoded (GLib.HashTable form_data_set);
+ public static weak string form_encode_valist (string first_field, pointer args);
[CCode (cheader_filename = "libsoup/soup.h")]
- public static weak string form_encode_urlencoded_list (out weak GLib.Data form_data_set);
+ public static weak Soup.Message form_request_new (string method, string uri, ...);
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public static weak Soup.Message form_request_new_from_datalist (string method, string uri, out weak GLib.Data form_data_set);
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public static weak Soup.Message form_request_new_from_hash (string method, string uri, GLib.HashTable form_data_set);
[CCode (cheader_filename = "libsoup/soup.h")]
public static bool header_contains (string header, string token);
[CCode (cheader_filename = "libsoup/soup.h")]
@@ -604,8 +648,6 @@
[CCode (cheader_filename = "libsoup/soup.h")]
public static GLib.Quark http_error_quark ();
[CCode (cheader_filename = "libsoup/soup.h")]
- public static uint signal_connect_once (pointer instance, string detailed_signal, GLib.Callback c_handler, pointer data);
- [CCode (cheader_filename = "libsoup/soup.h")]
public static GLib.Quark ssl_error_quark ();
[CCode (cheader_filename = "libsoup/soup.h")]
public static weak string status_get_phrase (uint status_code);
@@ -616,22 +658,34 @@
[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 GLib.ValueArray value_array_from_args (pointer 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 GLib.ValueArray value_array_new ();
+ [CCode (cheader_filename = "libsoup/soup.h")]
+ public static GLib.ValueArray value_array_new_with_vals (...);
+ [CCode (cheader_filename = "libsoup/soup.h")]
public static bool value_array_to_args (GLib.ValueArray array, pointer args);
[CCode (cheader_filename = "libsoup/soup.h")]
public static void value_hash_insert (GLib.HashTable hash, string key, GLib.Type type);
[CCode (cheader_filename = "libsoup/soup.h")]
+ public static void value_hash_insert_vals (GLib.HashTable hash, ...);
+ [CCode (cheader_filename = "libsoup/soup.h")]
public static void value_hash_insert_value (GLib.HashTable hash, string key, GLib.Value value);
[CCode (cheader_filename = "libsoup/soup.h")]
public static bool value_hash_lookup (GLib.HashTable hash, string key, GLib.Type type);
[CCode (cheader_filename = "libsoup/soup.h")]
+ public static bool value_hash_lookup_vals (GLib.HashTable hash, ...);
+ [CCode (cheader_filename = "libsoup/soup.h")]
public static weak GLib.HashTable value_hash_new ();
[CCode (cheader_filename = "libsoup/soup.h")]
+ public static weak GLib.HashTable value_hash_new_with_vals (...);
+ [CCode (cheader_filename = "libsoup/soup.h")]
public static weak string xmlrpc_build_fault (int fault_code, string fault_format);
[CCode (cheader_filename = "libsoup/soup.h")]
public static weak string xmlrpc_build_method_call (string method_name, GLib.Value[] params);
Modified: trunk/vapi/packages/libsoup-2.4/libsoup-2.4.gi
==============================================================================
--- trunk/vapi/packages/libsoup-2.4/libsoup-2.4.gi (original)
+++ trunk/vapi/packages/libsoup-2.4/libsoup-2.4.gi Tue Feb 19 20:06:09 2008
@@ -28,24 +28,61 @@
<parameter name="data" type="gpointer"/>
</parameters>
</function>
- <function name="form_decode_urlencoded" symbol="soup_form_decode_urlencoded">
+ <function name="form_decode" symbol="soup_form_decode">
<return-type type="GHashTable*"/>
<parameters>
<parameter name="encoded_form" type="char*"/>
</parameters>
</function>
- <function name="form_encode_urlencoded" symbol="soup_form_encode_urlencoded">
+ <function name="form_encode" symbol="soup_form_encode">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="first_field" type="char*"/>
+ </parameters>
+ </function>
+ <function name="form_encode_datalist" symbol="soup_form_encode_datalist">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="form_data_set" type="GData**"/>
+ </parameters>
+ </function>
+ <function name="form_encode_hash" symbol="soup_form_encode_hash">
<return-type type="char*"/>
<parameters>
<parameter name="form_data_set" type="GHashTable*"/>
</parameters>
</function>
- <function name="form_encode_urlencoded_list" symbol="soup_form_encode_urlencoded_list">
+ <function name="form_encode_valist" symbol="soup_form_encode_valist">
<return-type type="char*"/>
<parameters>
+ <parameter name="first_field" type="char*"/>
+ <parameter name="args" type="va_list"/>
+ </parameters>
+ </function>
+ <function name="form_request_new" symbol="soup_form_request_new">
+ <return-type type="SoupMessage*"/>
+ <parameters>
+ <parameter name="method" type="char*"/>
+ <parameter name="uri" type="char*"/>
+ <parameter name="first_field" type="char*"/>
+ </parameters>
+ </function>
+ <function name="form_request_new_from_datalist" symbol="soup_form_request_new_from_datalist">
+ <return-type type="SoupMessage*"/>
+ <parameters>
+ <parameter name="method" type="char*"/>
+ <parameter name="uri" type="char*"/>
<parameter name="form_data_set" type="GData**"/>
</parameters>
</function>
+ <function name="form_request_new_from_hash" symbol="soup_form_request_new_from_hash">
+ <return-type type="SoupMessage*"/>
+ <parameters>
+ <parameter name="method" type="char*"/>
+ <parameter name="uri" type="char*"/>
+ <parameter name="form_data_set" type="GHashTable*"/>
+ </parameters>
+ </function>
<function name="header_contains" symbol="soup_header_contains">
<return-type type="gboolean"/>
<parameters>
@@ -118,15 +155,6 @@
<function name="http_error_quark" symbol="soup_http_error_quark">
<return-type type="GQuark"/>
</function>
- <function name="signal_connect_once" symbol="soup_signal_connect_once">
- <return-type type="guint"/>
- <parameters>
- <parameter name="instance" type="gpointer"/>
- <parameter name="detailed_signal" type="char*"/>
- <parameter name="c_handler" type="GCallback"/>
- <parameter name="data" type="gpointer"/>
- </parameters>
- </function>
<function name="ssl_error_quark" symbol="soup_ssl_error_quark">
<return-type type="GQuark"/>
</function>
@@ -156,6 +184,13 @@
<parameter name="type" type="GType"/>
</parameters>
</function>
+ <function name="value_array_append_vals" symbol="soup_value_array_append_vals">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="array" type="GValueArray*"/>
+ <parameter name="first_type" type="GType"/>
+ </parameters>
+ </function>
<function name="value_array_from_args" symbol="soup_value_array_from_args">
<return-type type="GValueArray*"/>
<parameters>
@@ -178,6 +213,15 @@
<parameter name="type" type="GType"/>
</parameters>
</function>
+ <function name="value_array_new" symbol="soup_value_array_new">
+ <return-type type="GValueArray*"/>
+ </function>
+ <function name="value_array_new_with_vals" symbol="soup_value_array_new_with_vals">
+ <return-type type="GValueArray*"/>
+ <parameters>
+ <parameter name="first_type" type="GType"/>
+ </parameters>
+ </function>
<function name="value_array_to_args" symbol="soup_value_array_to_args">
<return-type type="gboolean"/>
<parameters>
@@ -193,6 +237,13 @@
<parameter name="type" type="GType"/>
</parameters>
</function>
+ <function name="value_hash_insert_vals" symbol="soup_value_hash_insert_vals">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="hash" type="GHashTable*"/>
+ <parameter name="first_key" type="char*"/>
+ </parameters>
+ </function>
<function name="value_hash_insert_value" symbol="soup_value_hash_insert_value">
<return-type type="void"/>
<parameters>
@@ -209,9 +260,22 @@
<parameter name="type" type="GType"/>
</parameters>
</function>
+ <function name="value_hash_lookup_vals" symbol="soup_value_hash_lookup_vals">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="hash" type="GHashTable*"/>
+ <parameter name="first_key" type="char*"/>
+ </parameters>
+ </function>
<function name="value_hash_new" symbol="soup_value_hash_new">
<return-type type="GHashTable*"/>
</function>
+ <function name="value_hash_new_with_vals" symbol="soup_value_hash_new_with_vals">
+ <return-type type="GHashTable*"/>
+ <parameters>
+ <parameter name="first_key" type="char*"/>
+ </parameters>
+ </function>
<function name="xmlrpc_build_fault" symbol="soup_xmlrpc_build_fault">
<return-type type="char*"/>
<parameters>
@@ -340,6 +404,14 @@
<parameter name="user_data" type="gpointer"/>
</parameters>
</callback>
+ <callback name="SoupChunkAllocator">
+ <return-type type="SoupBuffer*"/>
+ <parameters>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="max_len" type="gsize"/>
+ <parameter name="user_data" type="gpointer"/>
+ </parameters>
+ </callback>
<callback name="SoupLoggerFilter">
<return-type type="SoupLoggerLogLevel"/>
<parameters>
@@ -393,7 +465,74 @@
<parameter name="user_data" type="gpointer"/>
</parameters>
</callback>
- <struct name="SoupClientContext">
+ <struct name="SoupMessageHeadersIter">
+ <method name="init" symbol="soup_message_headers_iter_init">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="iter" type="SoupMessageHeadersIter*"/>
+ <parameter name="hdrs" type="SoupMessageHeaders*"/>
+ </parameters>
+ </method>
+ <method name="next" symbol="soup_message_headers_iter_next">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="iter" type="SoupMessageHeadersIter*"/>
+ <parameter name="name" type="char**"/>
+ <parameter name="value" type="char**"/>
+ </parameters>
+ </method>
+ <field name="dummy" type="gpointer[]"/>
+ </struct>
+ <boxed name="SoupBuffer" type-name="SoupBuffer" get-type="soup_buffer_get_type">
+ <method name="copy" symbol="soup_buffer_copy">
+ <return-type type="SoupBuffer*"/>
+ <parameters>
+ <parameter name="buffer" type="SoupBuffer*"/>
+ </parameters>
+ </method>
+ <method name="free" symbol="soup_buffer_free">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="buffer" type="SoupBuffer*"/>
+ </parameters>
+ </method>
+ <method name="get_owner" symbol="soup_buffer_get_owner">
+ <return-type type="gpointer"/>
+ <parameters>
+ <parameter name="buffer" type="SoupBuffer*"/>
+ </parameters>
+ </method>
+ <constructor name="new" symbol="soup_buffer_new">
+ <return-type type="SoupBuffer*"/>
+ <parameters>
+ <parameter name="use" type="SoupMemoryUse"/>
+ <parameter name="data" type="gconstpointer"/>
+ <parameter name="length" type="gsize"/>
+ </parameters>
+ </constructor>
+ <constructor name="new_subbuffer" symbol="soup_buffer_new_subbuffer">
+ <return-type type="SoupBuffer*"/>
+ <parameters>
+ <parameter name="parent" type="SoupBuffer*"/>
+ <parameter name="offset" type="gsize"/>
+ <parameter name="length" type="gsize"/>
+ </parameters>
+ </constructor>
+ <constructor name="new_with_owner" symbol="soup_buffer_new_with_owner">
+ <return-type type="SoupBuffer*"/>
+ <parameters>
+ <parameter name="data" type="gconstpointer"/>
+ <parameter name="length" type="gsize"/>
+ <parameter name="owner" type="gpointer"/>
+ <parameter name="owner_dnotify" type="GDestroyNotify"/>
+ </parameters>
+ </constructor>
+ <field name="data" type="char*"/>
+ <field name="length" type="gsize"/>
+ </boxed>
+ <boxed name="SoupByteArray" type-name="SoupByteArray" get-type="soup_byte_array_get_type">
+ </boxed>
+ <boxed name="SoupClientContext" type-name="SoupClientContext" get-type="soup_client_context_get_type">
<method name="get_address" symbol="soup_client_context_get_address">
<return-type type="SoupAddress*"/>
<parameters>
@@ -424,8 +563,72 @@
<parameter name="client" type="SoupClientContext*"/>
</parameters>
</method>
- </struct>
- <struct name="SoupMessageBody">
+ </boxed>
+ <boxed name="SoupDate" type-name="SoupDate" get-type="soup_date_get_type">
+ <method name="copy" symbol="soup_date_copy">
+ <return-type type="SoupDate*"/>
+ <parameters>
+ <parameter name="date" type="SoupDate*"/>
+ </parameters>
+ </method>
+ <method name="free" symbol="soup_date_free">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="date" type="SoupDate*"/>
+ </parameters>
+ </method>
+ <constructor name="new" symbol="soup_date_new">
+ <return-type type="SoupDate*"/>
+ <parameters>
+ <parameter name="year" type="int"/>
+ <parameter name="month" type="int"/>
+ <parameter name="day" type="int"/>
+ <parameter name="hour" type="int"/>
+ <parameter name="minute" type="int"/>
+ <parameter name="second" type="int"/>
+ </parameters>
+ </constructor>
+ <constructor name="new_from_now" symbol="soup_date_new_from_now">
+ <return-type type="SoupDate*"/>
+ <parameters>
+ <parameter name="offset_seconds" type="int"/>
+ </parameters>
+ </constructor>
+ <constructor name="new_from_string" symbol="soup_date_new_from_string">
+ <return-type type="SoupDate*"/>
+ <parameters>
+ <parameter name="date_string" type="char*"/>
+ </parameters>
+ </constructor>
+ <constructor name="new_from_time_t" symbol="soup_date_new_from_time_t">
+ <return-type type="SoupDate*"/>
+ <parameters>
+ <parameter name="when" type="time_t"/>
+ </parameters>
+ </constructor>
+ <method name="to_string" symbol="soup_date_to_string">
+ <return-type type="char*"/>
+ <parameters>
+ <parameter name="date" type="SoupDate*"/>
+ <parameter name="format" type="SoupDateFormat"/>
+ </parameters>
+ </method>
+ <method name="to_time_t" symbol="soup_date_to_time_t">
+ <return-type type="time_t"/>
+ <parameters>
+ <parameter name="date" type="SoupDate*"/>
+ </parameters>
+ </method>
+ <field name="year" type="int"/>
+ <field name="month" type="int"/>
+ <field name="day" type="int"/>
+ <field name="hour" type="int"/>
+ <field name="minute" type="int"/>
+ <field name="second" type="int"/>
+ <field name="utc" type="gboolean"/>
+ <field name="offset" type="int"/>
+ </boxed>
+ <boxed name="SoupMessageBody" type-name="SoupMessageBody" get-type="soup_message_body_get_type">
<method name="append" symbol="soup_message_body_append">
<return-type type="void"/>
<parameters>
@@ -467,9 +670,9 @@
<parameter name="offset" type="goffset"/>
</parameters>
</method>
- <method name="new" symbol="soup_message_body_new">
+ <constructor name="new" symbol="soup_message_body_new">
<return-type type="SoupMessageBody*"/>
- </method>
+ </constructor>
<method name="truncate" symbol="soup_message_body_truncate">
<return-type type="void"/>
<parameters>
@@ -478,8 +681,8 @@
</method>
<field name="data" type="char*"/>
<field name="length" type="goffset"/>
- </struct>
- <struct name="SoupMessageHeaders">
+ </boxed>
+ <boxed name="SoupMessageHeaders" type-name="SoupMessageHeaders" get-type="soup_message_headers_get_type">
<method name="append" symbol="soup_message_headers_append">
<return-type type="void"/>
<parameters>
@@ -533,12 +736,12 @@
<parameter name="hdrs" type="SoupMessageHeaders*"/>
</parameters>
</method>
- <method name="new" symbol="soup_message_headers_new">
+ <constructor name="new" symbol="soup_message_headers_new">
<return-type type="SoupMessageHeaders*"/>
<parameters>
<parameter name="type" type="SoupMessageHeadersType"/>
</parameters>
- </method>
+ </constructor>
<method name="remove" symbol="soup_message_headers_remove">
<return-type type="void"/>
<parameters>
@@ -575,98 +778,6 @@
<parameter name="expectations" type="SoupExpectation"/>
</parameters>
</method>
- </struct>
- <boxed name="GByteArray" type-name="GByteArray" get-type="soup_byte_array_get_type">
- </boxed>
- <boxed name="SoupBuffer" type-name="SoupBuffer" get-type="soup_buffer_get_type">
- <method name="copy" symbol="soup_buffer_copy">
- <return-type type="SoupBuffer*"/>
- <parameters>
- <parameter name="buffer" type="SoupBuffer*"/>
- </parameters>
- </method>
- <method name="free" symbol="soup_buffer_free">
- <return-type type="void"/>
- <parameters>
- <parameter name="buffer" type="SoupBuffer*"/>
- </parameters>
- </method>
- <constructor name="new" symbol="soup_buffer_new">
- <return-type type="SoupBuffer*"/>
- <parameters>
- <parameter name="use" type="SoupMemoryUse"/>
- <parameter name="data" type="gconstpointer"/>
- <parameter name="length" type="gsize"/>
- </parameters>
- </constructor>
- <constructor name="new_subbuffer" symbol="soup_buffer_new_subbuffer">
- <return-type type="SoupBuffer*"/>
- <parameters>
- <parameter name="parent" type="SoupBuffer*"/>
- <parameter name="offset" type="gsize"/>
- <parameter name="length" type="gsize"/>
- </parameters>
- </constructor>
- <field name="data" type="char*"/>
- <field name="length" type="gsize"/>
- </boxed>
- <boxed name="SoupDate" type-name="SoupDate" get-type="soup_date_get_type">
- <method name="copy" symbol="soup_date_copy">
- <return-type type="SoupDate*"/>
- <parameters>
- <parameter name="date" type="SoupDate*"/>
- </parameters>
- </method>
- <method name="free" symbol="soup_date_free">
- <return-type type="void"/>
- <parameters>
- <parameter name="date" type="SoupDate*"/>
- </parameters>
- </method>
- <constructor name="new" symbol="soup_date_new">
- <return-type type="SoupDate*"/>
- <parameters>
- <parameter name="year" type="int"/>
- <parameter name="month" type="int"/>
- <parameter name="day" type="int"/>
- <parameter name="hour" type="int"/>
- <parameter name="minute" type="int"/>
- <parameter name="second" type="int"/>
- </parameters>
- </constructor>
- <constructor name="new_from_now" symbol="soup_date_new_from_now">
- <return-type type="SoupDate*"/>
- <parameters>
- <parameter name="offset_seconds" type="int"/>
- </parameters>
- </constructor>
- <constructor name="new_from_string" symbol="soup_date_new_from_string">
- <return-type type="SoupDate*"/>
- <parameters>
- <parameter name="date_string" type="char*"/>
- </parameters>
- </constructor>
- <constructor name="new_from_time_t" symbol="soup_date_new_from_time_t">
- <return-type type="SoupDate*"/>
- <parameters>
- <parameter name="when" type="time_t"/>
- </parameters>
- </constructor>
- <method name="to_string" symbol="soup_date_to_string">
- <return-type type="char*"/>
- <parameters>
- <parameter name="date" type="SoupDate*"/>
- <parameter name="format" type="SoupDateFormat"/>
- </parameters>
- </method>
- <field name="year" type="int"/>
- <field name="month" type="int"/>
- <field name="day" type="int"/>
- <field name="hour" type="int"/>
- <field name="minute" type="int"/>
- <field name="second" type="int"/>
- <field name="utc" type="gboolean"/>
- <field name="offset" type="int"/>
</boxed>
<boxed name="SoupURI" type-name="SoupURI" get-type="soup_uri_get_type">
<method name="copy" symbol="soup_uri_copy">
@@ -763,6 +874,13 @@
<parameter name="query" type="char*"/>
</parameters>
</method>
+ <method name="set_query_from_fields" symbol="soup_uri_set_query_from_fields">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="uri" type="SoupURI*"/>
+ <parameter name="first_field" type="char*"/>
+ </parameters>
+ </method>
<method name="set_query_from_form" symbol="soup_uri_set_query_from_form">
<return-type type="void"/>
<parameters>
@@ -807,6 +925,7 @@
<field name="fragment" type="char*"/>
</boxed>
<enum name="SoupAddressFamily">
+ <member name="SOUP_ADDRESS_FAMILY_INVALID" value="-1"/>
<member name="SOUP_ADDRESS_FAMILY_IPV4" value="2"/>
<member name="SOUP_ADDRESS_FAMILY_IPV6" value="10"/>
</enum>
@@ -1009,6 +1128,11 @@
<parameter name="cancellable" type="GCancellable*"/>
</parameters>
</method>
+ <property name="family" type="SoupAddressFamily" readable="1" writable="1" construct="0" construct-only="1"/>
+ <property name="name" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
+ <property name="physical" type="char*" readable="1" writable="0" construct="0" construct-only="0"/>
+ <property name="port" type="gint" readable="1" writable="1" construct="0" construct-only="1"/>
+ <property name="sockaddr" type="gpointer" readable="1" writable="1" construct="0" construct-only="1"/>
</object>
<object name="SoupAuth" parent="GObject" type-name="SoupAuth" get-type="soup_auth_get_type">
<method name="authenticate" symbol="soup_auth_authenticate">
@@ -1437,6 +1561,15 @@
<parameter name="msg" type="SoupMessage*"/>
</parameters>
</method>
+ <method name="set_chunk_allocator" symbol="soup_message_set_chunk_allocator">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="allocator" type="SoupChunkAllocator"/>
+ <parameter name="user_data" type="gpointer"/>
+ <parameter name="destroy_notify" type="GDestroyNotify"/>
+ </parameters>
+ </method>
<method name="set_flags" symbol="soup_message_set_flags">
<return-type type="void"/>
<parameters>
@@ -1690,38 +1823,39 @@
<property name="interface" type="SoupAddress*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="port" type="guint" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="raw-paths" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
+ <property name="server-header" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
<property name="ssl-cert-file" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<property name="ssl-key-file" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
<signal name="request-aborted" when="FIRST">
<return-type type="void"/>
<parameters>
- <parameter name="object" type="SoupServer*"/>
- <parameter name="p0" type="SoupMessage*"/>
- <parameter name="p1" type="SoupClientContext"/>
+ <parameter name="server" type="SoupServer*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="client" type="SoupClientContext*"/>
</parameters>
</signal>
<signal name="request-finished" when="FIRST">
<return-type type="void"/>
<parameters>
- <parameter name="object" type="SoupServer*"/>
- <parameter name="p0" type="SoupMessage*"/>
- <parameter name="p1" type="SoupClientContext"/>
+ <parameter name="server" type="SoupServer*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="client" type="SoupClientContext*"/>
</parameters>
</signal>
<signal name="request-read" when="FIRST">
<return-type type="void"/>
<parameters>
- <parameter name="object" type="SoupServer*"/>
- <parameter name="p0" type="SoupMessage*"/>
- <parameter name="p1" type="SoupClientContext"/>
+ <parameter name="server" type="SoupServer*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="client" type="SoupClientContext*"/>
</parameters>
</signal>
<signal name="request-started" when="FIRST">
<return-type type="void"/>
<parameters>
- <parameter name="object" type="SoupServer*"/>
- <parameter name="p0" type="SoupMessage*"/>
- <parameter name="p1" type="SoupClientContext"/>
+ <parameter name="server" type="SoupServer*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="client" type="SoupClientContext*"/>
</parameters>
</signal>
</object>
@@ -1790,21 +1924,22 @@
<property name="ssl-ca-file" type="char*" 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"/>
<signal name="authenticate" when="FIRST">
<return-type type="void"/>
<parameters>
- <parameter name="object" type="SoupSession*"/>
- <parameter name="p0" type="SoupMessage*"/>
- <parameter name="p1" type="SoupAuth*"/>
- <parameter name="p2" type="gboolean"/>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="auth" type="SoupAuth*"/>
+ <parameter name="retrying" type="gboolean"/>
</parameters>
</signal>
<signal name="request-started" when="FIRST">
<return-type type="void"/>
<parameters>
- <parameter name="object" type="SoupSession*"/>
- <parameter name="p0" type="SoupMessage*"/>
- <parameter name="p1" type="SoupSocket*"/>
+ <parameter name="session" type="SoupSession*"/>
+ <parameter name="msg" type="SoupMessage*"/>
+ <parameter name="socket" type="SoupSocket*"/>
</parameters>
</signal>
<vfunc name="cancel_message">
@@ -2006,6 +2141,11 @@
</object>
<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"/>
+ <constant name="SOUP_ADDRESS_PHYSICAL" type="char*" value="physical"/>
+ <constant name="SOUP_ADDRESS_PORT" type="char*" value="port"/>
+ <constant name="SOUP_ADDRESS_SOCKADDR" type="char*" value="sockaddr"/>
<constant name="SOUP_AUTH_DOMAIN_ADD_PATH" type="char*" value="add-path"/>
<constant name="SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK" type="char*" value="auth-callback"/>
<constant name="SOUP_AUTH_DOMAIN_BASIC_AUTH_DATA" type="char*" value="auth-data"/>
@@ -2048,6 +2188,7 @@
<constant name="SOUP_SERVER_INTERFACE" type="char*" value="interface"/>
<constant name="SOUP_SERVER_PORT" type="char*" value="port"/>
<constant name="SOUP_SERVER_RAW_PATHS" type="char*" value="raw-paths"/>
+ <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_ASYNC_CONTEXT" type="char*" value="async-context"/>
@@ -2059,6 +2200,7 @@
<constant name="SOUP_SESSION_SSL_CA_FILE" type="char*" value="ssl-ca-file"/>
<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"/>
<constant name="SOUP_SESSION_USE_NTLM" type="char*" value="use-ntlm"/>
<constant name="SOUP_SOCKET_ASYNC_CONTEXT" type="char*" value="async-context"/>
<constant name="SOUP_SOCKET_FLAG_NONBLOCKING" type="char*" value="non-blocking"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]