mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 21:03:10 +02:00
GFile: Add some introspection annotations
progress_callback in g_file_copy and g_file_copy_async may be NULL. Annotations should reflect that. Pointed out by Carlo Teubner. https://bugzilla.gnome.org/show_bug.cgi?id=664415
This commit is contained in:
parent
ff2f4a12ee
commit
0878f5ba43
20
gio/gfile.c
20
gio/gfile.c
@ -2988,8 +2988,9 @@ file_copy_fallback (GFile *source,
|
||||
* @source: input #GFile.
|
||||
* @destination: destination #GFile
|
||||
* @flags: set of #GFileCopyFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
||||
* @progress_callback: (scope call): function to callback with progress information
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
||||
* @progress_callback: (allow-none) (scope call): function to callback with
|
||||
* progress information, or %NULL if progress information is not needed
|
||||
* @progress_callback_data: (closure): user data to pass to @progress_callback
|
||||
* @error: #GError to set on error, or %NULL
|
||||
*
|
||||
@ -3023,9 +3024,9 @@ file_copy_fallback (GFile *source,
|
||||
* error is returned. If trying to overwrite a directory with a directory the
|
||||
* G_IO_ERROR_WOULD_MERGE error is returned.
|
||||
*
|
||||
* If the source is a directory and the target does not exist, or #G_FILE_COPY_OVERWRITE is
|
||||
* specified and the target is a file, then the G_IO_ERROR_WOULD_RECURSE error
|
||||
* is returned.
|
||||
* If the source is a directory and the target does not exist, or
|
||||
* #G_FILE_COPY_OVERWRITE is specified and the target is a file, then the
|
||||
* G_IO_ERROR_WOULD_RECURSE error is returned.
|
||||
*
|
||||
* If you are interested in copying the #GFile object itself (not the on-disk
|
||||
* file), see g_file_dup().
|
||||
@ -3110,10 +3111,11 @@ g_file_copy (GFile *source,
|
||||
* @destination: destination #GFile
|
||||
* @flags: set of #GFileCopyFlags
|
||||
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
||||
* of the request.
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
||||
* @progress_callback: function to callback with progress information
|
||||
* @progress_callback_data: user data to pass to @progress_callback
|
||||
* of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
||||
* @progress_callback: (allow-none): function to callback with progress
|
||||
* information, or %NULL if progress information is not needed
|
||||
* @progress_callback_data: (closure): user data to pass to @progress_callback
|
||||
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user