mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-26 05:52:16 +01: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:
@@ -2320,11 +2320,11 @@ parse (TokenStream *stream,
|
||||
|
||||
/**
|
||||
* g_variant_parse:
|
||||
* @type: (allow-none): a #GVariantType, or %NULL
|
||||
* @type: (nullable): a #GVariantType, or %NULL
|
||||
* @text: a string containing a GVariant in text form
|
||||
* @limit: (allow-none): a pointer to the end of @text, or %NULL
|
||||
* @endptr: (allow-none): a location to store the end pointer, or %NULL
|
||||
* @error: (allow-none): a pointer to a %NULL #GError pointer, or %NULL
|
||||
* @limit: (nullable): a pointer to the end of @text, or %NULL
|
||||
* @endptr: (nullable): a location to store the end pointer, or %NULL
|
||||
* @error: (nullable): a pointer to a %NULL #GError pointer, or %NULL
|
||||
*
|
||||
* Parses a #GVariant from a text representation.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user