From d9844472a88b0078e4dc4b8fa933cee9b669d4ed Mon Sep 17 00:00:00 2001 From: fbrouille <150549-fbrouille@users.noreply.gitlab.gnome.org> Date: Thu, 12 Dec 2024 21:52:32 +0000 Subject: [PATCH] Add nullable annotations for GVfsFileLookupFunc Add the nullable annotation on the parameter 'user_data' and fix the description. Add the nullable annotation on the return value. Fixes #3561 --- gio/gvfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gvfs.h b/gio/gvfs.h index c006219cb..5fe3c76f7 100644 --- a/gio/gvfs.h +++ b/gio/gvfs.h @@ -43,7 +43,7 @@ G_BEGIN_DECLS * @vfs: a #GVfs * @identifier: the identifier to look up a #GFile for. This can either * be a URI or a parse name as returned by g_file_get_parse_name() - * @user_data: user data passed to the function + * @user_data: (nullable): user data passed to the function, or %NULL * * This function type is used by g_vfs_register_uri_scheme() to make it * possible for a client to associate a URI scheme to a different #GFile @@ -52,7 +52,7 @@ G_BEGIN_DECLS * The client should return a reference to the new file that has been * created for @uri, or %NULL to continue with the default implementation. * - * Returns: (transfer full): a #GFile for @identifier. + * Returns: (nullable) (transfer full): a #GFile for @identifier. * * Since: 2.50 */