[vala/0.34] gio-2.0: Use default 'length = null' for DataInputStream.read_line_utf8*
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] gio-2.0: Use default 'length = null' for DataInputStream.read_line_utf8*
- Date: Thu, 8 Jun 2017 11:06:25 +0000 (UTC)
commit 16fa28eee6f2a71501a3a635797419eb782cdf50
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jun 7 09:59:06 2017 +0200
gio-2.0: Use default 'length = null' for DataInputStream.read_line_utf8*
https://bugzilla.gnome.org/show_bug.cgi?id=783351
vapi/gio-2.0.vapi | 4 ++--
vapi/metadata/Gio-2.0-custom.vala | 2 +-
vapi/metadata/Gio-2.0.metadata | 1 +
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 62863ce..1505588 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1058,9 +1058,9 @@ namespace GLib {
[Version (since = "2.20")]
public async string? read_line_async (int io_priority = GLib.Priority.DEFAULT,
GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError, GLib.IOError;
[Version (since = "2.30")]
- public string? read_line_utf8 (out size_t length, GLib.Cancellable? cancellable = null)
throws GLib.IOError;
+ public string? read_line_utf8 (out size_t length = null, GLib.Cancellable? cancellable =
null) throws GLib.IOError;
[CCode (cname = "g_data_input_stream_read_line_async", finish_function =
"g_data_input_stream_read_line_finish_utf8")]
- public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT,
GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
+ public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT,
GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError;
public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 99dad6e..f3aa484 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -59,7 +59,7 @@ namespace GLib {
public class DataInputStream : GLib.BufferedInputStream {
[CCode (cname = "g_data_input_stream_read_line_async", finish_function =
"g_data_input_stream_read_line_finish_utf8")]
- public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT,
GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
+ public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT,
GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError;
}
[CCode (cheader_filename = "gio/gio.h", type_id = "g_file_monitor_get_type ()")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 05520a5..255c371 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -91,6 +91,7 @@ DataInputStream
.read_* throws="GLib.IOError"
.read_line* nullable
.read_line_finish_utf8 skip
+ .read_line_utf8.length default=null
DataOutputStream
.put_* throws="GLib.IOError"
DBusAuthObserver.authorize_authenticated_peer virtual
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]