]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Fix g_data_input_stream_read_* bindings
authorJürg Billeter <j@bitron.ch>
Sun, 20 Dec 2009 15:43:12 +0000 (16:43 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 20 Dec 2009 15:43:12 +0000 (16:43 +0100)
Fixes bug 605066.

vapi/gio-2.0.vapi
vapi/packages/gio-2.0/gio-2.0.metadata

index 4ba0f45c2e3cd4a1a393d8420647bc97d388f901..260f495dc0c9b8dd4f204dbac02f9ac96b91a88d 100644 (file)
@@ -67,15 +67,15 @@ namespace GLib {
                public int16 read_int16 (GLib.Cancellable? cancellable) throws GLib.Error;
                public int32 read_int32 (GLib.Cancellable? cancellable) throws GLib.Error;
                public int64 read_int64 (GLib.Cancellable? cancellable) throws GLib.Error;
-               public unowned string? read_line (out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
-               public async unowned string read_line_async (int io_priority, GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
-               public unowned string read_line_finish (GLib.AsyncResult _result, out unowned size_t length) throws GLib.Error;
+               public string? read_line (out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
+               public async string? read_line_async (int io_priority, GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
+               public string? read_line_finish (GLib.AsyncResult _result, out unowned size_t length) throws GLib.Error;
                public uint16 read_uint16 (GLib.Cancellable? cancellable) throws GLib.Error;
                public uint32 read_uint32 (GLib.Cancellable? cancellable) throws GLib.Error;
                public uint64 read_uint64 (GLib.Cancellable? cancellable) throws GLib.Error;
-               public unowned string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
-               public async unowned string read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
-               public unowned string read_until_finish (GLib.AsyncResult _result, out unowned size_t length) throws GLib.Error;
+               public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable) throws GLib.Error;
+               public async string? read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
+               public string? read_until_finish (GLib.AsyncResult _result, out unowned size_t length) throws GLib.Error;
                public void set_byte_order (GLib.DataStreamByteOrder order);
                public void set_newline_type (GLib.DataStreamNewlineType type);
                public GLib.DataStreamByteOrder byte_order { get; set; }
index 54cb45dcfc5de75853f71f76237c6b99ea9c467d..868600e93eec924aee0a7869f00a05496637adf1 100644 (file)
@@ -6,11 +6,13 @@ g_app_info_launch_uris.envp is_array="1"
 GAsyncReadyCallback.source_object nullable="1"
 g_content_type_guess.data_size hidden="1"
 g_content_type_guess.result_uncertain is_out="1"
-g_data_input_stream_read_line nullable="1"
+g_data_input_stream_read_line nullable="1" transfer_ownership="1"
 g_data_input_stream_read_line.length is_out="1"
+g_data_input_stream_read_line_finish nullable="1" transfer_ownership="1"
 g_data_input_stream_read_line_finish.length is_out="1"
-g_data_input_stream_read_until nullable="1"
+g_data_input_stream_read_until nullable="1" transfer_ownership="1"
 g_data_input_stream_read_until.length is_out="1"
+g_data_input_stream_read_until_finish nullable="1" transfer_ownership="1"
 g_data_input_stream_read_until_finish.length is_out="1"
 g_drive_eject async="1"
 g_drive_eject_with_operation async="1"