summaryrefslogtreecommitdiff
path: root/gio/gpollableoutputstream.c
diff options
context:
space:
mode:
authorPavel Holejsovsky <pholejs@src.gnome.org>2010-12-28 16:53:48 +0100
committerPavel Holejsovsky <pholejs@src.gnome.org>2010-12-29 16:02:12 +0100
commit571104bcc384c30054b507cab8e9d9a5f1166c45 (patch)
tree4106ad9fb025efae4905702e9f4f5412fe79db55 /gio/gpollableoutputstream.c
parent79fd5ff80dcf086749e942ea3be9e4fa88317b09 (diff)
downloadglib-571104bcc384c30054b507cab8e9d9a5f1166c45.tar.gz
Add GI annotations to GPollable{Input|Output}Stream
Diffstat (limited to 'gio/gpollableoutputstream.c')
-rw-r--r--gio/gpollableoutputstream.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gio/gpollableoutputstream.c b/gio/gpollableoutputstream.c
index b4efb3fe3..7879e8839 100644
--- a/gio/gpollableoutputstream.c
+++ b/gio/gpollableoutputstream.c
@@ -116,9 +116,9 @@ g_pollable_output_stream_is_writable (GPollableOutputStream *stream)
}
/**
- * g_pollable_output_stream_create_source:
+ * g_pollable_output_stream_create_source: (skip)
* @stream: a #GPollableOutputStream.
- * @cancellable: a #GCancellable, or %NULL
+ * @cancellable: (allow-none): a #GCancellable, or %NULL
*
* Creates a #GSource that triggers when @stream can be written, or
* @cancellable is triggered or an error occurs. The callback on the
@@ -129,7 +129,7 @@ g_pollable_output_stream_is_writable (GPollableOutputStream *stream)
* triggers, so you should use g_pollable_output_stream_write_nonblocking()
* rather than g_output_stream_write() from the callback.
*
- * Returns: a new #GSource
+ * Returns: (transfer full): a new #GSource
*
* Since: 2.28
*/
@@ -163,9 +163,10 @@ g_pollable_output_stream_default_write_nonblocking (GPollableOutputStream *stre
/**
* g_pollable_output_stream_write_nonblocking:
* @stream: a #GPollableOutputStream
- * @buffer: a buffer to write data from
+ * @buffer: (array length=size) (element-type guint8): a buffer to write
+ * data from
* @size: the number of bytes you want to write
- * @cancellable: a #GCancellable, or %NULL
+ * @cancellable: (allow-none): a #GCancellable, or %NULL
* @error: #GError for error reporting, or %NULL to ignore.
*
* Attempts to write up to @size bytes from @buffer to @stream, as
@@ -180,6 +181,7 @@ g_pollable_output_stream_default_write_nonblocking (GPollableOutputStream *stre
* may happen if you call this method after a source triggers due
* to having been cancelled.
*
+ * Virtual: write_nonblocking
* Return value: the number of bytes written, or -1 on error (including
* %G_IO_ERROR_WOULD_BLOCK).
*/