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:
@@ -448,8 +448,8 @@ on_run (GSocketService *service,
|
||||
* @address: A D-Bus address.
|
||||
* @flags: Flags from the #GDBusServerFlags enumeration.
|
||||
* @guid: A D-Bus GUID.
|
||||
* @observer: (allow-none): A #GDBusAuthObserver or %NULL.
|
||||
* @cancellable: (allow-none): A #GCancellable or %NULL.
|
||||
* @observer: (nullable): A #GDBusAuthObserver or %NULL.
|
||||
* @cancellable: (nullable): A #GCancellable or %NULL.
|
||||
* @error: Return location for server or %NULL.
|
||||
*
|
||||
* Creates a new D-Bus server that listens on the first address in
|
||||
|
Reference in New Issue
Block a user