[vala/staging] vapi: Update GIR-based bindings



commit 751b57831c35e6ade805c0a0087c7cccd9c19d00
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Feb 3 11:03:30 2020 +0100

    vapi: Update GIR-based bindings

 vapi/gio-2.0.vapi       |  9 ---------
 vapi/gstreamer-1.0.vapi |  3 ++-
 vapi/libgsf-1.vapi      |  4 ++--
 vapi/libsoup-2.4.vapi   | 28 ++++++++++++++++++++++++++++
 4 files changed, 32 insertions(+), 12 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 257a8ab1b..05613546d 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2973,9 +2973,6 @@ namespace GLib {
                public TlsCertificate.from_files (string cert_file, string key_file) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public TlsCertificate.from_pem (string data, ssize_t length) throws GLib.Error;
-               [CCode (has_construct_function = false)]
-               [Version (since = "2.64")]
-               public TlsCertificate.from_pkcs11_uris (string pkcs11_uri, string? private_key_pkcs11_uri) 
throws GLib.Error;
                public unowned GLib.TlsCertificate get_issuer ();
                [Version (since = "2.34")]
                public bool is_same (GLib.TlsCertificate cert_two);
@@ -2987,15 +2984,9 @@ namespace GLib {
                public string certificate_pem { owned get; construct; }
                public GLib.TlsCertificate issuer { get; construct; }
                [NoAccessorMethod]
-               [Version (since = "2.64")]
-               public string pkcs11_uri { owned get; construct; }
-               [NoAccessorMethod]
                public GLib.ByteArray private_key { construct; }
                [NoAccessorMethod]
                public string private_key_pem { construct; }
-               [NoAccessorMethod]
-               [Version (since = "2.64")]
-               public string private_key_pkcs11_uri { owned get; construct; }
        }
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_connection_get_type ()")]
        [Version (since = "2.28")]
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index 3c31f220c..1c3b22216 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -3119,7 +3119,8 @@ namespace Gst {
        public enum ClockType {
                REALTIME,
                MONOTONIC,
-               OTHER
+               OTHER,
+               TAI
        }
        [CCode (cheader_filename = "gst/gst.h", cprefix = "GST_DEBUG_", type_id = 
"gst_debug_color_flags_get_type ()")]
        [Flags]
diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi
index 476727ef0..cc630983f 100644
--- a/vapi/libgsf-1.vapi
+++ b/vapi/libgsf-1.vapi
@@ -737,8 +737,6 @@ namespace Gsf {
        public const string META_NAME_TITLE;
        [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_META_NAME_WORD_COUNT")]
        public const string META_NAME_WORD_COUNT;
-       [CCode (cheader_filename = "gsf/gsf.h", cname = "GSF_PARAM_STATIC")]
-       public const int PARAM_STATIC;
        [CCode (cheader_filename = "gsf/gsf.h")]
        public static size_t base64_decode_simple ([CCode (array_length = false)] uint8[] data, size_t len);
        [CCode (cheader_filename = "gsf/gsf.h")]
@@ -817,6 +815,8 @@ namespace Gsf {
        [CCode (cheader_filename = "gsf/gsf.h")]
        public static void shutdown_dynamic (GLib.TypeModule module);
        [CCode (cheader_filename = "gsf/gsf.h")]
+       public static unowned GLib.Array<GLib.Value?>? value_get_docprop_array (GLib.Value value);
+       [CCode (cheader_filename = "gsf/gsf.h")]
        public static GLib.ValueArray value_get_docprop_varray (GLib.Value value);
        [CCode (cheader_filename = "gsf/gsf.h")]
        public static unowned Gsf.DocPropVector value_get_docprop_vector (GLib.Value value);
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 1f18cfcf4..7be72bec9 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -377,6 +377,8 @@ namespace Soup {
                public unowned string get_name ();
                [Version (since = "2.32")]
                public unowned string get_path ();
+               [Version (since = "2.70")]
+               public Soup.SameSitePolicy get_same_site_policy ();
                [Version (since = "2.32")]
                public bool get_secure ();
                [Version (since = "2.32")]
@@ -388,6 +390,8 @@ namespace Soup {
                public void set_max_age (int max_age);
                public void set_name (string name);
                public void set_path (string path);
+               [Version (since = "2.70")]
+               public void set_same_site_policy (Soup.SameSitePolicy policy);
                public void set_secure (bool secure);
                public void set_value (string value);
                public string to_cookie_header ();
@@ -412,6 +416,8 @@ namespace Soup {
                public Soup.CookieJarAcceptPolicy get_accept_policy ();
                [Version (since = "2.40")]
                public GLib.SList<Soup.Cookie> get_cookie_list (Soup.URI uri, bool for_http);
+               [Version (since = "2.70")]
+               public GLib.SList<Soup.Cookie> get_cookie_list_with_same_site_info (Soup.URI uri, Soup.URI? 
top_level, Soup.URI? site_for_cookies, bool for_http, bool is_safe_method, bool is_top_level_navigation);
                [Version (since = "2.24")]
                public string? get_cookies (Soup.URI uri, bool for_http);
                [Version (since = "2.40")]
@@ -581,8 +587,12 @@ namespace Soup {
                public Soup.HTTPVersion get_http_version ();
                [Version (since = "2.34")]
                public bool get_https_status (out unowned GLib.TlsCertificate certificate, out 
GLib.TlsCertificateFlags errors);
+               [Version (since = "2.70")]
+               public bool get_is_top_level_navigation ();
                [Version (since = "2.44")]
                public Soup.MessagePriority get_priority ();
+               [Version (since = "2.70")]
+               public unowned Soup.URI get_site_for_cookies ();
                [Version (since = "2.42")]
                public unowned Soup.Request get_soup_request ();
                public unowned Soup.URI get_uri ();
@@ -593,12 +603,16 @@ namespace Soup {
                public void set_first_party (Soup.URI first_party);
                public void set_flags (Soup.MessageFlags flags);
                public void set_http_version (Soup.HTTPVersion version);
+               [Version (since = "2.70")]
+               public void set_is_top_level_navigation (bool is_top_level_navigation);
                [Version (since = "2.44")]
                public void set_priority (Soup.MessagePriority priority);
                [Version (since = "2.38")]
                public void set_redirect (uint status_code, string redirect_uri);
                public void set_request (string? content_type, Soup.MemoryUse req_use, [CCode 
(array_length_cname = "req_length", array_length_pos = 3.1, array_length_type = "gsize")] uint8[] req_body);
                public void set_response (string? content_type, Soup.MemoryUse resp_use, [CCode 
(array_length_cname = "resp_length", array_length_pos = 3.1, array_length_type = "gsize")] uint8[]? 
resp_body);
+               [Version (since = "2.70")]
+               public void set_site_for_cookies (Soup.URI? site_for_cookies);
                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);
@@ -606,6 +620,8 @@ namespace Soup {
                public Soup.URI first_party { get; set; }
                public Soup.MessageFlags flags { get; set; }
                public Soup.HTTPVersion http_version { get; set; }
+               [Version (since = "2.70")]
+               public bool is_top_level_navigation { get; set; }
                [NoAccessorMethod]
                public string method { owned get; set; }
                public Soup.MessagePriority priority { get; set; }
@@ -613,6 +629,7 @@ namespace Soup {
                public string reason_phrase { owned get; set; }
                [NoAccessorMethod]
                public bool server_side { get; construct; }
+               public Soup.URI site_for_cookies { get; set; }
                [NoAccessorMethod]
                public uint status_code { get; set; }
                [NoAccessorMethod]
@@ -1472,6 +1489,13 @@ namespace Soup {
                HIGH,
                VERY_HIGH
        }
+       [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_SAME_SITE_POLICY_", type_id = 
"soup_same_site_policy_get_type ()")]
+       [Version (since = "2.70")]
+       public enum SameSitePolicy {
+               NONE,
+               LAX,
+               STRICT
+       }
        [CCode (cheader_filename = "libsoup/soup.h", cprefix = "SOUP_SERVER_LISTEN_", type_id = 
"soup_server_listen_options_get_type ()")]
        [Flags]
        [Version (since = "2.48")]
@@ -1768,6 +1792,8 @@ namespace Soup {
        public const string MESSAGE_FLAGS;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_HTTP_VERSION")]
        public const string MESSAGE_HTTP_VERSION;
+       [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_IS_TOP_LEVEL_NAVIGATION")]
+       public const string MESSAGE_IS_TOP_LEVEL_NAVIGATION;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_METHOD")]
        public const string MESSAGE_METHOD;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_PRIORITY")]
@@ -1791,6 +1817,8 @@ namespace Soup {
        public const string MESSAGE_RESPONSE_HEADERS;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_SERVER_SIDE")]
        public const string MESSAGE_SERVER_SIDE;
+       [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_SITE_FOR_COOKIES")]
+       public const string MESSAGE_SITE_FOR_COOKIES;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_STATUS_CODE")]
        public const string MESSAGE_STATUS_CODE;
        [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_MESSAGE_TLS_CERTIFICATE")]


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