mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +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,9 +330,9 @@ g_volume_should_automount (GVolume *volume)
|
||||
* g_volume_mount:
|
||||
* @volume: a #GVolume
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: (allow-none): a #GMountOperation or %NULL to avoid user interaction
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback, or %NULL
|
||||
* @mount_operation: (nullable): a #GMountOperation or %NULL to avoid user interaction
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (nullable): a #GAsyncReadyCallback, or %NULL
|
||||
* @user_data: user data that gets passed to @callback
|
||||
*
|
||||
* Mounts a volume. This is an asynchronous operation, and is
|
||||
@@ -406,8 +406,8 @@ g_volume_mount_finish (GVolume *volume,
|
||||
* g_volume_eject:
|
||||
* @volume: a #GVolume
|
||||
* @flags: flags affecting the unmount if required for eject
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback, or %NULL
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (nullable): a #GAsyncReadyCallback, or %NULL
|
||||
* @user_data: user data that gets passed to @callback
|
||||
*
|
||||
* Ejects a volume. This is an asynchronous operation, and is
|
||||
@@ -477,10 +477,10 @@ g_volume_eject_finish (GVolume *volume,
|
||||
* g_volume_eject_with_operation:
|
||||
* @volume: a #GVolume
|
||||
* @flags: flags affecting the unmount if required for eject
|
||||
* @mount_operation: (allow-none): a #GMountOperation or %NULL to
|
||||
* @mount_operation: (nullable): a #GMountOperation or %NULL to
|
||||
* avoid user interaction
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback, or %NULL
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (nullable): a #GAsyncReadyCallback, or %NULL
|
||||
* @user_data: user data passed to @callback
|
||||
*
|
||||
* Ejects a volume. This is an asynchronous operation, and is
|
||||
|
Reference in New Issue
Block a user