[vala/staging: 1/3] glib-2.0, gio-2.0, gobject-2.0: Update 2.74 symbols




commit d07f48535ae55adc08cc640531691223931be9d4
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Aug 8 20:46:15 2022 +0200

    glib-2.0,gio-2.0,gobject-2.0: Update 2.74 symbols

 vapi/gio-2.0.vapi              | 50 +++++++++++++++++++++++++++++++++++++-----
 vapi/glib-2.0.vapi             | 37 ++++++++++++++++++++++++++++++-
 vapi/gobject-2.0.vapi          |  5 +++++
 vapi/metadata/Gio-2.0.metadata |  2 --
 4 files changed, 85 insertions(+), 9 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index dc565db94..d3a28d369 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -297,18 +297,30 @@ namespace GLib {
                public const string THUMBNAIL_PATH;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS")]
                public const string TIME_ACCESS;
+               [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC")]
+               [Version (since = "2.74")]
+               public const string TIME_ACCESS_NSEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS_USEC")]
                public const string TIME_ACCESS_USEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED")]
                public const string TIME_CHANGED;
+               [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED_NSEC")]
+               [Version (since = "2.74")]
+               public const string TIME_CHANGED_NSEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED_USEC")]
                public const string TIME_CHANGED_USEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED")]
                public const string TIME_CREATED;
+               [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED_NSEC")]
+               [Version (since = "2.74")]
+               public const string TIME_CREATED_NSEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED_USEC")]
                public const string TIME_CREATED_USEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED")]
                public const string TIME_MODIFIED;
+               [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC")]
+               [Version (since = "2.74")]
+               public const string TIME_MODIFIED_NSEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC")]
                public const string TIME_MODIFIED_USEC;
                [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_DELETION_DATE")]
@@ -1753,6 +1765,8 @@ namespace GLib {
                public bool find (GLib.Object item, out uint position);
                [Version (since = "2.64")]
                public bool find_with_equal_func (GLib.Object item, GLib.EqualFunc<GLib.Object> equal_func, 
out uint position);
+               [Version (since = "2.74")]
+               public bool find_with_equal_func_full (GLib.Object item, [CCode (delegate_target_pos = 2.5)] 
GLib.EqualFuncFull equal_func, out uint position);
                [Version (since = "2.44")]
                public void insert (uint position, GLib.Object item);
                [Version (since = "2.44")]
@@ -1768,6 +1782,9 @@ namespace GLib {
                [NoAccessorMethod]
                [Version (since = "2.44")]
                public GLib.Type item_type { get; construct; }
+               [NoAccessorMethod]
+               [Version (since = "2.74")]
+               public uint n_items { get; }
        }
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_input_stream_get_type ()")]
        public class MemoryInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.Seekable {
@@ -2594,7 +2611,7 @@ namespace GLib {
        public class SimpleProxyResolver : GLib.Object, GLib.ProxyResolver {
                [CCode (has_construct_function = false, type = "GProxyResolver*")]
                public SimpleProxyResolver (string? default_proxy, [CCode (array_length = false, 
array_null_terminated = true)] string[]? ignore_hosts);
-               public void set_default_proxy (string default_proxy);
+               public void set_default_proxy (string? default_proxy);
                public void set_ignore_hosts ([CCode (array_length = false, array_null_terminated = true)] 
string[] ignore_hosts);
                public void set_uri_proxy (string uri_scheme, string proxy);
                [NoAccessorMethod]
@@ -2731,8 +2748,8 @@ namespace GLib {
        public abstract class SocketAddressEnumerator : GLib.Object {
                [CCode (has_construct_function = false)]
                protected SocketAddressEnumerator ();
-               public virtual GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws 
GLib.Error;
-               public virtual async GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) 
throws GLib.Error;
+               public virtual GLib.SocketAddress? next (GLib.Cancellable? cancellable = null) throws 
GLib.Error;
+               public virtual async GLib.SocketAddress? next_async (GLib.Cancellable? cancellable = null) 
throws GLib.Error;
        }
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_client_get_type ()")]
        [Version (since = "2.22")]
@@ -3485,7 +3502,11 @@ namespace GLib {
                [Version (since = "2.20")]
                public abstract unowned string? get_commandline ();
                public static GLib.AppInfo? get_default_for_type (string content_type, bool 
must_support_uris);
+               [Version (since = "2.74")]
+               public static async GLib.AppInfo get_default_for_type_async (string content_type, bool 
must_support_uris, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public static GLib.AppInfo? get_default_for_uri_scheme (string uri_scheme);
+               [Version (since = "2.74")]
+               public static async GLib.AppInfo get_default_for_uri_scheme_async (string uri_scheme, 
GLib.Cancellable? cancellable = null) throws GLib.Error;
                public abstract unowned string? get_description ();
                [Version (since = "2.24")]
                public abstract unowned string get_display_name ();
@@ -3665,15 +3686,18 @@ namespace GLib {
        public interface DtlsClientConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
                public GLib.List<GLib.ByteArray> get_accepted_cas ();
                public unowned GLib.SocketConnectable get_server_identity ();
+               [Version (deprecated = true, deprecated_since = "2.74", since = "2.48")]
                public GLib.TlsCertificateFlags get_validation_flags ();
                public static GLib.DtlsClientConnection @new (GLib.DatagramBased base_socket, 
GLib.SocketConnectable? server_identity) throws GLib.Error;
                public void set_server_identity (GLib.SocketConnectable identity);
+               [Version (deprecated = true, deprecated_since = "2.74", since = "2.48")]
                public void set_validation_flags (GLib.TlsCertificateFlags flags);
                [ConcreteAccessor]
                public abstract GLib.List<void*> accepted_cas { owned get; }
                [ConcreteAccessor]
                public abstract GLib.SocketConnectable server_identity { get; set construct; }
                [ConcreteAccessor]
+               [Version (deprecated = true, deprecated_since = "2.74", since = "2.48")]
                public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
        }
        [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsConnectionInterface", type_id = 
"g_dtls_connection_get_type ()")]
@@ -3808,6 +3832,8 @@ namespace GLib {
                [Version (since = "2.18")]
                public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws 
GLib.Error;
                public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable 
= null) throws GLib.Error;
+               [Version (since = "2.74")]
+               public virtual async bool make_symbolic_link_async (string symlink_value, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.38")]
                public virtual bool measure_disk_usage (GLib.FileMeasureFlags flags, GLib.Cancellable? 
cancellable, [CCode (delegate_target_pos = 3.5)] GLib.FileMeasureProgressCallback? progress_callback, out 
uint64 disk_usage, out uint64 num_dirs, out uint64 num_files) throws GLib.Error;
                [Version (since = "2.38")]
@@ -3831,6 +3857,10 @@ namespace GLib {
                public static GLib.File new_for_uri (string uri);
                [Version (since = "2.32")]
                public static GLib.File new_tmp (string? tmpl, out GLib.FileIOStream iostream) throws 
GLib.Error;
+               [Version (since = "2.74")]
+               public static async GLib.File new_tmp_async (string? tmpl, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out GLib.FileIOStream iostream) throws 
GLib.Error;
+               [Version (since = "2.74")]
+               public static async GLib.File new_tmp_dir_async (string? tmpl, int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.22")]
                public abstract GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) 
throws GLib.Error;
                [Version (since = "2.22")]
@@ -4273,6 +4303,7 @@ namespace GLib {
        [Version (since = "2.28")]
        public enum ApplicationFlags {
                FLAGS_NONE,
+               DEFAULT_FLAGS,
                IS_SERVICE,
                IS_LAUNCHER,
                HANDLES_OPEN,
@@ -4373,7 +4404,8 @@ namespace GLib {
                AUTHENTICATION_ALLOW_ANONYMOUS,
                MESSAGE_BUS_CONNECTION,
                DELAY_MESSAGE_PROCESSING,
-               AUTHENTICATION_REQUIRE_SAME_USER
+               AUTHENTICATION_REQUIRE_SAME_USER,
+               CROSS_NAMESPACE
        }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_INTERFACE_SKELETON_FLAGS_", type_id = 
"g_dbus_interface_skeleton_flags_get_type ()")]
        [Flags]
@@ -4815,6 +4847,7 @@ namespace GLib {
        [Flags]
        [Version (since = "2.28")]
        public enum TlsCertificateFlags {
+               NO_FLAGS,
                UNKNOWN_CA,
                BAD_IDENTITY,
                NOT_ACTIVATED,
@@ -4833,7 +4866,8 @@ namespace GLib {
        [Version (since = "2.66")]
        public enum TlsChannelBindingType {
                UNIQUE,
-               SERVER_END_POINT
+               SERVER_END_POINT,
+               EXPORTER
        }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_LOOKUP_", type_id = 
"g_tls_database_lookup_flags_get_type ()")]
        [Version (since = "2.30")]
@@ -5013,7 +5047,8 @@ namespace GLib {
                BROKEN_PIPE,
                CONNECTION_CLOSED,
                NOT_CONNECTED,
-               MESSAGE_TOO_LARGE;
+               MESSAGE_TOO_LARGE,
+               NO_SUCH_DEVICE;
                [CCode (cname = "vala_g_io_error_from_errno")]
                public static GLib.IOError from_errno (int err_no) {
                        return (GLib.IOError) new GLib.Error (GLib.IOError.quark (), GLib.IOError._from_errno 
(err_no), "%s", GLib.strerror (err_no));
@@ -5027,6 +5062,9 @@ namespace GLib {
                [CCode (cheader_filename = "gio/gio.h", cname = "g_io_error_from_errno")]
                public static int _from_errno (int err_no);
                [CCode (cheader_filename = "gio/gio.h")]
+               [Version (since = "2.74")]
+               public static unowned GLib.IOError from_file_error (GLib.FileError file_error);
+               [CCode (cheader_filename = "gio/gio.h")]
                public static GLib.Quark quark ();
        }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_ERROR_", type_id = 
"g_resolver_error_get_type ()")]
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 079d4fa50..472b79c80 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1844,9 +1844,13 @@ namespace GLib {
                public static void set (ref int atomic, int newval);
                [Version (since = "2.30")]
                public static int add (ref int atomic, int val);
+               [Version (since = "2.74")]
+               public static int exchange (ref int atomic, int newval);
                [Version (deprecated_since = "2.30", replacement = "add")]
                public static int exchange_and_add (ref int atomic, int val);
                public static bool compare_and_exchange (ref int atomic, int oldval, int newval);
+               [Version (since = "2.74")]
+               public static bool compare_and_exchange_full (ref int atomic, int oldval, int newval, out int 
preval);
                public static void inc (ref int atomic);
                public static bool dec_and_test (ref int atomic);
        }
@@ -1860,11 +1864,17 @@ namespace GLib {
                [Version (since = "2.30")]
                [CCode (cname = "g_atomic_int_add")]
                public static uint add (ref uint atomic, uint val);
+               [Version (since = "2.74")]
+               [CCode (cname = "g_atomic_int_exchange")]
+               public static uint exchange (ref uint atomic, uint newval);
                [Version (deprecated_since = "2.30", replacement = "add")]
                [CCode (cname = "g_atomic_int_exchange_and_add")]
                public static uint exchange_and_add (ref uint atomic, uint val);
                [CCode (cname = "g_atomic_int_compare_and_exchange")]
                public static bool compare_and_exchange (ref uint atomic, uint oldval, uint newval);
+               [Version (since = "2.74")]
+               [CCode (cname = "g_atomic_int_compare_and_exchange_full")]
+               public static bool compare_and_exchange_full (ref uint atomic, uint oldval, uint newval, out 
uint preval);
                [CCode (cname = "g_atomic_int_inc")]
                public static void inc (ref uint atomic);
                [CCode (cname = "g_atomic_int_dec_and_test")]
@@ -1876,6 +1886,8 @@ namespace GLib {
                public static void* get (void** atomic);
                public static void set (void** atomic, void* newval);
                public static bool compare_and_exchange (void** atomic, void* oldval, void* newval);
+               [Version (since = "2.74")]
+               public static bool compare_and_exchange_full (void** atomic, void* oldval, void* newval, out 
void* preval);
        }
 #else
        [Version (since = "2.4")]
@@ -2017,6 +2029,8 @@ namespace GLib {
                [CCode (cname = "g_timeout_add_full")]
                public static uint add (uint interval, owned SourceFunc function, [CCode (pos = 0.1)] int 
priority = Priority.DEFAULT);
                public static uint add_full (int priority, uint interval, owned SourceFunc function);
+               [Version (since = "2.74")]
+               public static uint add_once (uint interval, SourceOnceFunc function);
                [Version (since = "2.14")]
                [CCode (cname = "g_timeout_add_seconds_full")]
                public static uint add_seconds (uint interval, owned SourceFunc function, [CCode (pos = 0.1)] 
int priority = Priority.DEFAULT);
@@ -2033,6 +2047,8 @@ namespace GLib {
                [CCode (cname = "g_idle_add_full")]
                public static uint add (owned SourceFunc function, [CCode (pos = 0.1)] int priority = 
Priority.DEFAULT_IDLE);
                public static uint add_full (int priority, owned SourceFunc function);
+               [Version (since = "2.74")]
+               public static uint add_once (SourceOnceFunc function);
                public static bool remove_by_data (void* data);
        }
 
@@ -2184,6 +2200,8 @@ namespace GLib {
        }
 
        public delegate bool SourceFunc ();
+       [Version (since = "2.74")]
+       public delegate bool SourceOnceFunc ();
 
        [CCode (has_type_id = false)]
        public errordomain ThreadError {
@@ -2664,6 +2682,8 @@ namespace GLib {
        [CCode (cprefix = "G_IO_FLAG_", has_type_id = false)]
        [Flags]
        public enum IOFlags {
+               [Version (since = "2.74")]
+               NONE,
                APPEND,
                NONBLOCK,
                IS_READABLE,
@@ -3577,7 +3597,12 @@ namespace GLib {
        public enum FormatSizeFlags {
                DEFAULT,
                LONG_FORMAT,
-               IEC_UNITS
+               IEC_UNITS,
+               BITS,
+               [Version (since = "2.74")]
+               ONLY_VALUE,
+               [Version (since = "2.74")]
+               ONLY_UNIT
        }
 
        /* Lexical Scanner */
@@ -5063,6 +5088,9 @@ namespace GLib {
        [CCode (cprefix = "G_TEST_SUBPROCESS_INHERIT_", has_type_id = false)]
        [Flags]
        public enum TestSubprocessFlags {
+               [Version (since = "2.74")]
+               [CCode (cname = "G_TEST_SUBPROCESS_DEFAULT")]
+               DEFAULT,
                STDIN,
                STDOUT,
                STDERR
@@ -5577,6 +5605,8 @@ namespace GLib {
        public delegate uint HashFunc<K> (K key);
        [CCode (has_target = false)]
        public delegate bool EqualFunc<G> (G a, G b);
+       [Version (since = "2.74")]
+       public delegate bool EqualFuncFull<G> (G a, G b);
        public delegate void HFunc<K,V> (K key, V value);
        public delegate bool HRFunc<K,V> (K key, V value);
 
@@ -5735,6 +5765,9 @@ namespace GLib {
                [Version (since = "2.30")]
                [CCode (cname = "g_ptr_array_new_full", simple_generics = true)]
                public GenericArray (uint reserved_size = 0);
+               [Version (since = "2.74")]
+               [CCode (cname = "g_ptr_array_new_null_terminated", simple_generics = true)]
+               public GenericArray.null_terminated (uint reserved_size, [CCode (pos = -1)] bool 
null_terminated);
                public void add (owned G data);
                [Version (since = "2.62")]
                public GenericArray<G> copy (CopyFunc<G> func);
@@ -5754,6 +5787,8 @@ namespace GLib {
                public unowned G get (uint index);
                [Version (since = "2.40")]
                public void insert (int index, owned G data);
+               [Version (since = "2.74")]
+               public bool is_null_terminated ();
                public bool remove (G data);
                public void remove_index (uint index);
                public bool remove_fast (G data);
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index 8701a95e5..b3812febf 100644
--- a/vapi/gobject-2.0.vapi
+++ b/vapi/gobject-2.0.vapi
@@ -286,6 +286,9 @@ namespace GLib {
                public bool value_convert (GLib.Value src_value, ref GLib.Value dest_value, bool 
strict_validation);
                [CCode (cname = "g_param_value_defaults", vfunc_name = "value_defaults")]
                public virtual bool value_defaults (GLib.Value value);
+               [Version (since = "2.74")]
+               [CCode (cname = "g_param_value_is_valid")]
+               public bool value_is_valid (GLib.Value value);
                [CCode (cname = "g_param_value_validate", vfunc_name = "value_validate")]
                public virtual bool value_validate (GLib.Value value);
                [CCode (cname = "g_param_values_cmp", vfunc_name = "values_cmp")]
@@ -482,6 +485,8 @@ namespace GLib {
                public void block ();
                public void connect (string detailed_signal, GLib.Callback c_handler, void* data);
                public void connect_after (string detailed_signal, GLib.Callback c_handler, void* data);
+               [Version (since = "2.74")]
+               public void connect_closure (string detailed_signal, GLib.Closure closure, bool after);
                public void connect_data (string detailed_signal, GLib.Callback c_handler, void* data, 
GLib.ClosureNotify notify, GLib.ConnectFlags flags);
                public void connect_object (string detailed_signal, GLib.Callback c_handler, void* object, 
GLib.ConnectFlags flags);
                public void connect_swapped (string detailed_signal, GLib.Callback c_handler, void* data);
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index e70332418..18ea8c8f1 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -297,8 +297,6 @@ PollableOutputStream
   .create_source type="GLib.PollableSource"
   .write_nonblocking#virtual_method name="write_nonblocking_fn" no_wrapper
   .writev_nonblocking#virtual_method name="writev_nonblocking_fn" no_wrapper
-TlsCertificate
-  .new_from_pkcs12.data array array_length_idx=1
 TlsClientConnection
   .new nullable
   .accepted_cas type="GLib.List<GLib.ByteArray>"


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