mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +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:
@@ -355,7 +355,7 @@ g_io_stream_real_close (GIOStream *stream,
|
||||
/**
|
||||
* g_io_stream_close:
|
||||
* @stream: a #GIOStream
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore
|
||||
* @error: location to store the error occurring, or %NULL to ignore
|
||||
*
|
||||
* Closes the stream, releasing resources related to it. This will also
|
||||
@@ -461,7 +461,7 @@ async_ready_close_callback_wrapper (GObject *source_object,
|
||||
* g_io_stream_close_async:
|
||||
* @stream: a #GIOStream
|
||||
* @io_priority: the io priority of the request
|
||||
* @cancellable: (allow-none): optional cancellable object
|
||||
* @cancellable: (nullable): optional cancellable object
|
||||
* @callback: (scope async): callback to call when the request is satisfied
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
*
|
||||
@@ -826,7 +826,7 @@ splice_cancelled_cb (GCancellable *cancellable,
|
||||
* @stream2: a #GIOStream.
|
||||
* @flags: a set of #GIOStreamSpliceFlags.
|
||||
* @io_priority: the io priority of the request.
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore.
|
||||
* @callback: (scope async): a #GAsyncReadyCallback.
|
||||
* @user_data: (closure): user data passed to @callback.
|
||||
*
|
||||
|
Reference in New Issue
Block a user