[glib: 1/2] gpollableinputstream: Add missing annotation




commit 27b9d2cb276a0aaab1525ec500334199685859dd
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Mar 18 20:42:05 2021 -0700

    gpollableinputstream: Add missing annotation
    
    The buffer for g_pollable_input_stream_read_nonblocking() is an out
    parameter which the caller must allocate.
    
    See https://gitlab.gnome.org/GNOME/gjs/-/issues/389

 gio/gpollableinputstream.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gpollableinputstream.c b/gio/gpollableinputstream.c
index 6a13f34b6..218f742f3 100644
--- a/gio/gpollableinputstream.c
+++ b/gio/gpollableinputstream.c
@@ -159,8 +159,8 @@ g_pollable_input_stream_default_read_nonblocking (GPollableInputStream  *stream,
 /**
  * g_pollable_input_stream_read_nonblocking:
  * @stream: a #GPollableInputStream
- * @buffer: (array length=count) (element-type guint8): a buffer to
- *     read data into (which should be at least @count bytes long).
+ * @buffer: (array length=count) (element-type guint8) (out caller-allocates): a
+ *     buffer to read data into (which should be at least @count bytes long).
  * @count: the number of bytes you want to read
  * @cancellable: (nullable): a #GCancellable, or %NULL
  * @error: #GError for error reporting, or %NULL to ignore.


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