]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix binding of PollableOutputStream.write*_nonblocking()
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)
vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index 0ac21c284a22329afc315983a2a927cafc871011..13ba6578c2baf972073c2bd7c60cf889ba86adf5 100644 (file)
@@ -3855,9 +3855,14 @@ namespace GLib {
                public abstract bool can_poll ();
                public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
                public abstract bool is_writable ();
-               public abstract ssize_t write_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[]? buffer) throws GLib.Error;
+               public ssize_t write_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (vfunc_name = "write_nonblocking")]
+               public abstract ssize_t write_nonblocking_fn ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[]? buffer) throws GLib.Error;
                [Version (since = "2.60")]
-               public abstract GLib.PollableReturn writev_nonblocking ([CCode (array_length_cname = "n_vectors", array_length_pos = 1.5, array_length_type = "gsize")] GLib.OutputVector[] vectors, out size_t bytes_written) throws GLib.Error;
+               public GLib.PollableReturn writev_nonblocking ([CCode (array_length_cname = "n_vectors", array_length_pos = 1.5, array_length_type = "gsize")] GLib.OutputVector[] vectors, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (vfunc_name = "writev_nonblocking")]
+               [Version (since = "2.60")]
+               public abstract GLib.PollableReturn writev_nonblocking_fn ([CCode (array_length_cname = "n_vectors", array_length_pos = 1.5, array_length_type = "gsize")] GLib.OutputVector[] vectors, out size_t bytes_written) throws GLib.Error;
        }
        [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyInterface", type_id = "g_proxy_get_type ()")]
        [Version (since = "2.26")]
index a474a49db022cbf422356f737d4899848f78c1f5..3ba649d18cfe0fb01d51f21b95fbf4dcfaffd465 100644 (file)
@@ -286,6 +286,8 @@ PollableInputStream
   .read_nonblocking#virtual_method name="read_nonblocking_fn"
 PollableOutputStream
   .create_source type="GLib.PollableSource"
+  .write_nonblocking#virtual_method name="write_nonblocking_fn"
+  .writev_nonblocking#virtual_method name="writev_nonblocking_fn"
 TlsClientConnection
   .new nullable
   .accepted_cas type="GLib.List<GLib.ByteArray>"