mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +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:
@@ -119,7 +119,7 @@ g_dbus_interface_dup_object (GDBusInterface *interface_)
|
||||
/**
|
||||
* g_dbus_interface_set_object:
|
||||
* @interface_: An exported D-Bus interface.
|
||||
* @object: (allow-none): A #GDBusObject or %NULL.
|
||||
* @object: (nullable): A #GDBusObject or %NULL.
|
||||
*
|
||||
* Sets the #GDBusObject for @interface_ to @object.
|
||||
*
|
||||
|
Reference in New Issue
Block a user