mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
introspection: use (nullable) or (optional) instead of (allow-none)
If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
This commit is contained in:
@@ -114,7 +114,7 @@ g_pollable_input_stream_is_readable (GPollableInputStream *stream)
|
||||
/**
|
||||
* g_pollable_input_stream_create_source:
|
||||
* @stream: a #GPollableInputStream.
|
||||
* @cancellable: (allow-none): a #GCancellable, or %NULL
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
*
|
||||
* Creates a #GSource that triggers when @stream can be read, or
|
||||
* @cancellable is triggered or an error occurs. The callback on the
|
||||
@@ -162,7 +162,7 @@ g_pollable_input_stream_default_read_nonblocking (GPollableInputStream *stream,
|
||||
* @buffer: (array length=count) (element-type guint8): a buffer to
|
||||
* read data into (which should be at least @count bytes long).
|
||||
* @count: the number of bytes you want to read
|
||||
* @cancellable: (allow-none): a #GCancellable, or %NULL
|
||||
* @cancellable: (nullable): a #GCancellable, or %NULL
|
||||
* @error: #GError for error reporting, or %NULL to ignore.
|
||||
*
|
||||
* Attempts to read up to @count bytes from @stream into @buffer, as
|
||||
|
Reference in New Issue
Block a user