mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 04:14:11 +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:
@@ -274,7 +274,7 @@ g_dbus_object_manager_server_new (const gchar *object_path)
|
||||
/**
|
||||
* g_dbus_object_manager_server_set_connection:
|
||||
* @manager: A #GDBusObjectManagerServer.
|
||||
* @connection: (allow-none): A #GDBusConnection or %NULL.
|
||||
* @connection: (nullable): A #GDBusConnection or %NULL.
|
||||
*
|
||||
* Exports all objects managed by @manager on @connection. If
|
||||
* @connection is %NULL, stops exporting objects.
|
||||
|
Reference in New Issue
Block a user