[vala] gio-2.0: fixes for pollable input and output streams



commit bbe19b126d9da4492a007f2e4fb6452fea66bbd8
Author: Evan Nemerson <evan coeus-group com>
Date:   Thu Aug 25 13:35:08 2011 -0700

    gio-2.0: fixes for pollable input and output streams

 vapi/gio-2.0.vapi                      |    8 ++++----
 vapi/packages/gio-2.0/gio-2.0.metadata |    3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 92d6b53..df0a30f 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2001,16 +2001,16 @@ namespace GLib {
 	[CCode (cheader_filename = "gio/gio.h")]
 	public interface PollableInputStream : GLib.InputStream {
 		public abstract bool can_poll ();
-		public abstract unowned GLib.TimeoutSource create_source (GLib.Cancellable? cancellable = null);
+		public abstract GLib.TimeoutSource create_source (GLib.Cancellable? cancellable = null);
 		public abstract bool is_readable ();
-		public abstract ssize_t read_nonblocking (void* buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
+		public abstract ssize_t read_nonblocking ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public interface PollableOutputStream : GLib.OutputStream {
 		public abstract bool can_poll ();
-		public abstract unowned GLib.TimeoutSource create_source (GLib.Cancellable? cancellable = null);
+		public abstract GLib.TimeoutSource create_source (GLib.Cancellable? cancellable = null);
 		public abstract bool is_writable ();
-		public abstract ssize_t write_nonblocking (void* buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
+		public abstract ssize_t write_nonblocking ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public interface Proxy : GLib.Object {
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 12d42bc..5b663eb 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -249,6 +249,9 @@ g_periodic_add.callback transfer_ownership="1"
 g_periodic_add.notify hidden="1"
 g_periodic_damaged.callback transfer_ownership="1"
 g_periodic_damaged.notify hidden="1"
+g_pollable_*_stream_create_source transfer_ownership="1"
+g_pollable_*_stream_*_nonblocking.buffer type_name="uint8[]" array_length_type="gsize"
+g_pollable_*_stream_*_nonblocking.size hidden="1"
 GResolverError errordomain="1"
 g_resolver_free_addresses hidden="1"
 g_resolver_free_targets hidden="1"



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