diff options
author | Corentin Noël <corentin@elementary.io> | 2018-06-13 19:20:55 +0100 |
---|---|---|
committer | Corentin Noël <corentin@elementary.io> | 2018-06-13 19:29:02 +0100 |
commit | dba29f88dab86e09d76af143a44da26127c23dd8 (patch) | |
tree | 2695c1142774e10759a0340498929db3a5c786b8 | |
parent | bc1f518e40b3735c7646b65dc27565e90ae17557 (diff) | |
download | libsoup-dba29f88dab86e09d76af143a44da26127c23dd8.tar.gz |
Remove many custom Vala bindings
-rw-r--r-- | libsoup/Soup-2.4-custom.vala | 136 | ||||
-rw-r--r-- | libsoup/Soup-2.4.metadata | 28 |
2 files changed, 3 insertions, 161 deletions
diff --git a/libsoup/Soup-2.4-custom.vala b/libsoup/Soup-2.4-custom.vala index 7265dcad..619bd027 100644 --- a/libsoup/Soup-2.4-custom.vala +++ b/libsoup/Soup-2.4-custom.vala @@ -6,144 +6,8 @@ namespace Soup { public Buffer.subbuffer (Soup.Buffer parent, size_t offset, size_t length); } - public errordomain SSLError { - HANDSHAKE_NEEDS_READ, - HANDSHAKE_NEEDS_WRITE, - CERTIFICATE, - HANDSHAKE_FAILED; - public static GLib.Quark quark (); - } - - [Compact] - [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 { - [CCode (has_construct_function = false)] - public URI.with_base (Soup.URI @base, string uri_string); - } - - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.build_fault")] - [PrintfFormat] - public static unowned string xmlrpc_build_fault (int fault_code, string fault_format, ...); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.build_method_call")] - public static unowned string xmlrpc_build_method_call (string method_name, GLib.Value[] @params); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.build_method_response")] - public static unowned string xmlrpc_build_method_response (GLib.Value value); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.error_quark")] - public static GLib.Quark xmlrpc_error_quark (); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.extract_method_call")] - [CCode (sentinel = "G_TYPE_INVALID")] - public static bool xmlrpc_extract_method_call (string method_call, int length, out unowned string method_name, ...); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.extract_method_response")] - [CCode (sentinel = "G_TYPE_INVALID")] - public static bool xmlrpc_extract_method_response (string method_response, int length, ...) throws GLib.Error; - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.fault_quark")] - public static GLib.Quark xmlrpc_fault_quark (); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.parse_method_call")] - public static bool xmlrpc_parse_method_call (string method_call, int length, out unowned string method_name, out unowned GLib.ValueArray @params); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.parse_method_response")] - public static bool xmlrpc_parse_method_response (string method_response, int length, GLib.Value value) throws GLib.Error; - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.request_new")] - [CCode (sentinel = "G_TYPE_INVALID")] - public static unowned Soup.Message xmlrpc_request_new (string uri, string method_name, ...); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.set_fault")] - [PrintfFormat] - public static void xmlrpc_set_fault (Soup.Message msg, int fault_code, string fault_format, ...); - [Version (deprecated_since = "vala-0.12", replacement = "XMLRPC.set_response")] - [CCode (sentinel = "G_TYPE_INVALID")] - public static void xmlrpc_set_response (Soup.Message msg, ...); - - [Version (deprecated_since = "vala-0.12", replacement = "Form.decode")] - public static GLib.HashTable<string,string> form_decode (string encoded_form); - [Version (deprecated_since = "vala-0.12", replacement = "Form.decode_multipart")] - 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); - [Version (deprecated_since = "vala-0.12", replacement = "Form.encode")] - public static string form_encode (...); - [Version (deprecated_since = "vala-0.12", replacement = "Form.encode_datalist")] - public static string form_encode_datalist (void* form_data_set); - [Version (deprecated_since = "vala-0.12", replacement = "Form.encode_hash")] - public static string form_encode_hash (GLib.HashTable<string,string> form_data_set); - [Version (deprecated_since = "vala-0.12")] - public static string form_encode_valist (string first_field, void* args); - [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new")] - public static Soup.Message form_request_new (string method, string uri, ...); - [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new_from_datalist")] - public static Soup.Message form_request_new_from_datalist (string method, string uri, void* form_data_set); - [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new_from_hash")] - public static Soup.Message form_request_new_from_hash (string method, string uri, GLib.HashTable<string,string> form_data_set); - [Version (deprecated_since = "vala-0.12", replacement = "Form.request_new_from_multipart")] - public static Soup.Message form_request_new_from_multipart (string uri, Soup.Multipart multipart); - [Version (deprecated_since = "vala-0.14", replacement = "SSLError.quark")] - public static GLib.Quark ssl_error_quark (); - [Version (deprecated_since = "vala-0.22", replacement = "Status.get_phrase")] public static unowned string status_get_phrase (uint status_code); [Version (deprecated_since = "vala-0.22", replacement = "Status.proxify")] public static uint status_proxify (uint status_code); - [Version (deprecated_since = "vala-0.22", replacement = "Status")] - [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_STATUS_", type_id = "soup_known_status_code_get_type ()")] - public enum KnownStatusCode { - NONE, - CANCELLED, - CANT_RESOLVE, - CANT_RESOLVE_PROXY, - CANT_CONNECT, - CANT_CONNECT_PROXY, - SSL_FAILED, - IO_ERROR, - MALFORMED, - TRY_AGAIN, - TOO_MANY_REDIRECTS, - TLS_FAILED, - CONTINUE, - SWITCHING_PROTOCOLS, - PROCESSING, - OK, - CREATED, - ACCEPTED, - NON_AUTHORITATIVE, - NO_CONTENT, - RESET_CONTENT, - PARTIAL_CONTENT, - MULTI_STATUS, - MULTIPLE_CHOICES, - MOVED_PERMANENTLY, - FOUND, - MOVED_TEMPORARILY, - SEE_OTHER, - NOT_MODIFIED, - USE_PROXY, - NOT_APPEARING_IN_THIS_PROTOCOL, - TEMPORARY_REDIRECT, - BAD_REQUEST, - UNAUTHORIZED, - PAYMENT_REQUIRED, - FORBIDDEN, - NOT_FOUND, - METHOD_NOT_ALLOWED, - NOT_ACCEPTABLE, - PROXY_AUTHENTICATION_REQUIRED, - PROXY_UNAUTHORIZED, - REQUEST_TIMEOUT, - CONFLICT, - GONE, - LENGTH_REQUIRED, - PRECONDITION_FAILED, - REQUEST_ENTITY_TOO_LARGE, - REQUEST_URI_TOO_LONG, - UNSUPPORTED_MEDIA_TYPE, - REQUESTED_RANGE_NOT_SATISFIABLE, - INVALID_RANGE, - EXPECTATION_FAILED, - UNPROCESSABLE_ENTITY, - LOCKED, - FAILED_DEPENDENCY, - INTERNAL_SERVER_ERROR, - NOT_IMPLEMENTED, - BAD_GATEWAY, - SERVICE_UNAVAILABLE, - GATEWAY_TIMEOUT, - HTTP_VERSION_NOT_SUPPORTED, - INSUFFICIENT_STORAGE, - NOT_EXTENDED - } } diff --git a/libsoup/Soup-2.4.metadata b/libsoup/Soup-2.4.metadata index f1b8ad77..c0056ec8 100644 --- a/libsoup/Soup-2.4.metadata +++ b/libsoup/Soup-2.4.metadata @@ -12,36 +12,25 @@ xmlrpc_set_response.type skip HTTPVersion.http_* name="http_(.+)" // Backwards compatibility -KnownStatusCode skip Requester deprecated_since="2.42" replacement="Session" -Requester - .request* skip=false unowned=false +KnownStatusCode deprecated_since="2.44" replacement="Status" +ProxyResolver deprecated_since="2.28" replacement="ProxyURIResolver" // Report upstream -Soup cheader_filename="libsoup/soup.h" add_* skip=false type="unowned GLib.TimeoutSource" AuthDomain .accepts#method name="accepts_authorization" AuthDomainBasic.new skip=false AuthDomainDigest.new skip=false -Buffer.new.data type="uint8[]" array_length_idx=2 -Buffer.new_with_owner.data type="uint8[]" array_length_idx=1 Buffer.new_subbuffer skip -Buffer.new_with_owner.owner_dnotify nullable -CookieJar.all_cookies type_arguments="Cookie" -ContentSniffer.sniff.params type_arguments="string,string" nullable out unowned=false +ContentSniffer.sniff.params nullable form_* skip=false -header_parse_list type_arguments="string" -header_parse_quality_list type_arguments="string" - .unacceptable out type_arguments="string" Message .add_header_handler skip=false .add_status_code_handler skip=false .request_*#property skip .response_*#property skip .set_request.req_body type="uint8[]" array_length_idx=3 -MessageHeaders - .get_ranges.ranges out type="Soup.Range[]" array_length_idx=2 Server .new skip=false .async_context type="GLib.MainContext" @@ -53,14 +42,8 @@ Session*.new_with_options skip=false Socket .async_context type="GLib.MainContext" .new skip=false - .read.buffer type="uint8[]" array_length_idx=1 - .read_until.buffer type="uint8[]" array_length_idx=1 - .read_until.nread out - .write.buffer type="uint8[]" array_length_idx=1 URI - .new_with_base skip .set_query_from_fields skip=false -uri_encode.escape_extra nullable // uri_host_*.* type="Soup.URI" ProxyURIResolverCallback.user_data skip xmlrpc_* skip=false @@ -69,11 +52,6 @@ xmlrpc_extract_method_response throws="Soup.XMLRPC.Fault" .error skip .type skip value_* skip=false -ProxyURIResolver - .get_proxy_uri_async skip=false - .get_proxy_uri_async.callback owned scope="async" - .get_proxy_uri_async.async_context nullable - .get_proxy_uri_sync.proxy_uri out unowned=false // Not enough GIR information Buffer.data type="uint8[]" array_length_field="length" |