[vala] gio-2.0: make DataInputStream.read_line*.length default to null
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: make DataInputStream.read_line*.length default to null
- Date: Fri, 20 Jul 2012 08:39:25 +0000 (UTC)
commit 5ac55f414cd092efa4522828d0931b1f6b1b5e3a
Author: Evan Nemerson <evan coeus-group com>
Date: Fri Jul 20 01:38:22 2012 -0700
gio-2.0: make DataInputStream.read_line*.length default to null
vapi/gio-2.0.vapi | 4 ++--
vapi/metadata/Gio-2.0.metadata | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 15f477f..cd7ac47 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -853,9 +853,9 @@ namespace GLib {
public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
[CCode (array_length = false, array_null_terminated = true)]
- public string? read_line (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
+ public string? read_line (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
[CCode (array_length = false, array_null_terminated = true)]
- public async string? read_line_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_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError, GLib.IOError;
public string? read_line_utf8 (out size_t length, 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;
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index a5d591c..dd30492 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -330,6 +330,8 @@ TlsCertificate abstract=false
DataInputStream
.read_line type="string?"
.read_line_finish type="string?"
+ .read_line_finish.length default=null
+ .read_line.length default=null
// Forward upstream
content_type_from_mime_type nullable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]