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:
@@ -330,11 +330,11 @@ g_memory_output_stream_init (GMemoryOutputStream *stream)
|
||||
|
||||
/**
|
||||
* g_memory_output_stream_new: (skip)
|
||||
* @data: (allow-none): pointer to a chunk of memory to use, or %NULL
|
||||
* @data: (nullable): pointer to a chunk of memory to use, or %NULL
|
||||
* @size: the size of @data
|
||||
* @realloc_function: (allow-none): a function with realloc() semantics (like g_realloc())
|
||||
* @realloc_function: (nullable): a function with realloc() semantics (like g_realloc())
|
||||
* to be called when @data needs to be grown, or %NULL
|
||||
* @destroy_function: (allow-none): a function to be called on @data when the stream is
|
||||
* @destroy_function: (nullable): a function to be called on @data when the stream is
|
||||
* finalized, or %NULL
|
||||
*
|
||||
* Creates a new #GMemoryOutputStream.
|
||||
|
Reference in New Issue
Block a user