mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +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:
218
gio/gfile.c
218
gio/gfile.c
@@ -708,7 +708,7 @@ g_file_get_parent (GFile *file)
|
||||
/**
|
||||
* g_file_has_parent:
|
||||
* @file: input #GFile
|
||||
* @parent: (allow-none): the parent to check for, or %NULL
|
||||
* @parent: (nullable): the parent to check for, or %NULL
|
||||
*
|
||||
* Checks if @file has a parent, and optionally, if it is @parent.
|
||||
*
|
||||
@@ -915,7 +915,7 @@ g_file_resolve_relative_path (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @attributes: an attribute query string
|
||||
* @flags: a set of #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: #GError for error reporting
|
||||
*
|
||||
@@ -980,7 +980,7 @@ g_file_enumerate_children (GFile *file,
|
||||
* @attributes: an attribute query string
|
||||
* @flags: a set of #GFileQueryInfoFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call when the
|
||||
* request is satisfied
|
||||
@@ -1053,7 +1053,7 @@ g_file_enumerate_children_finish (GFile *file,
|
||||
/**
|
||||
* g_file_query_exists:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
*
|
||||
* Utility function to check if a particular file exists. This is
|
||||
@@ -1105,7 +1105,7 @@ g_file_query_exists (GFile *file,
|
||||
* g_file_query_file_type:
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileQueryInfoFlags passed to g_file_query_info()
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
*
|
||||
* Utility function to inspect the #GFileType of a file. This is
|
||||
@@ -1146,7 +1146,7 @@ g_file_query_file_type (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @attributes: an attribute query string
|
||||
* @flags: a set of #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError
|
||||
*
|
||||
@@ -1217,7 +1217,7 @@ g_file_query_info (GFile *file,
|
||||
* @attributes: an attribute query string
|
||||
* @flags: a set of #GFileQueryInfoFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call when the
|
||||
* request is satisfied
|
||||
@@ -1290,7 +1290,7 @@ g_file_query_info_finish (GFile *file,
|
||||
* g_file_query_filesystem_info:
|
||||
* @file: input #GFile
|
||||
* @attributes: an attribute query string
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError
|
||||
*
|
||||
@@ -1354,7 +1354,7 @@ g_file_query_filesystem_info (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @attributes: an attribute query string
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -1426,7 +1426,7 @@ g_file_query_filesystem_info_finish (GFile *file,
|
||||
/**
|
||||
* g_file_find_enclosing_mount:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError
|
||||
*
|
||||
@@ -1476,7 +1476,7 @@ g_file_find_enclosing_mount (GFile *file,
|
||||
* g_file_find_enclosing_mount_async:
|
||||
* @file: a #GFile
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -1543,7 +1543,7 @@ g_file_find_enclosing_mount_finish (GFile *file,
|
||||
/**
|
||||
* g_file_read:
|
||||
* @file: #GFile to read
|
||||
* @cancellable: (allow-none): a #GCancellable
|
||||
* @cancellable: (nullable): a #GCancellable
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
* Opens a file for reading. The result is a #GFileInputStream that
|
||||
@@ -1591,7 +1591,7 @@ g_file_read (GFile *file,
|
||||
* g_file_append_to:
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -1646,7 +1646,7 @@ g_file_append_to (GFile *file,
|
||||
* g_file_create:
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -1703,11 +1703,11 @@ g_file_create (GFile *file,
|
||||
/**
|
||||
* g_file_replace:
|
||||
* @file: input #GFile
|
||||
* @etag: (allow-none): an optional [entity tag][gfile-etag]
|
||||
* @etag: (nullable): an optional [entity tag][gfile-etag]
|
||||
* for the current #GFile, or #NULL to ignore
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -1791,7 +1791,7 @@ g_file_replace (GFile *file,
|
||||
/**
|
||||
* g_file_open_readwrite:
|
||||
* @file: #GFile to open
|
||||
* @cancellable: (allow-none): a #GCancellable
|
||||
* @cancellable: (nullable): a #GCancellable
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
* Opens an existing file for reading and writing. The result is
|
||||
@@ -1845,7 +1845,7 @@ g_file_open_readwrite (GFile *file,
|
||||
* g_file_create_readwrite:
|
||||
* @file: a #GFile
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: return location for a #GError, or %NULL
|
||||
*
|
||||
@@ -1908,11 +1908,11 @@ g_file_create_readwrite (GFile *file,
|
||||
/**
|
||||
* g_file_replace_readwrite:
|
||||
* @file: a #GFile
|
||||
* @etag: (allow-none): an optional [entity tag][gfile-etag]
|
||||
* @etag: (nullable): an optional [entity tag][gfile-etag]
|
||||
* for the current #GFile, or #NULL to ignore
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: return location for a #GError, or %NULL
|
||||
*
|
||||
@@ -1964,7 +1964,7 @@ g_file_replace_readwrite (GFile *file,
|
||||
* g_file_read_async:
|
||||
* @file: input #GFile
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2032,7 +2032,7 @@ g_file_read_finish (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2103,7 +2103,7 @@ g_file_append_to_finish (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2172,12 +2172,12 @@ g_file_create_finish (GFile *file,
|
||||
/**
|
||||
* g_file_replace_async:
|
||||
* @file: input #GFile
|
||||
* @etag: (allow-none): an [entity tag][gfile-etag] for the current #GFile,
|
||||
* @etag: (nullable): an [entity tag][gfile-etag] for the current #GFile,
|
||||
* or %NULL to ignore
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2251,7 +2251,7 @@ g_file_replace_finish (GFile *file,
|
||||
* g_file_open_readwrite_async
|
||||
* @file: input #GFile
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2323,7 +2323,7 @@ g_file_open_readwrite_finish (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2396,12 +2396,12 @@ g_file_create_readwrite_finish (GFile *file,
|
||||
/**
|
||||
* g_file_replace_readwrite_async:
|
||||
* @file: input #GFile
|
||||
* @etag: (allow-none): an [entity tag][gfile-etag] for the current #GFile,
|
||||
* @etag: (nullable): an [entity tag][gfile-etag] for the current #GFile,
|
||||
* or %NULL to ignore
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -2707,7 +2707,7 @@ build_attribute_list_for_copy (GFile *file,
|
||||
* @source: a #GFile with attributes
|
||||
* @destination: a #GFile to copy attributes to
|
||||
* @flags: a set of #GFileCopyFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, %NULL to ignore
|
||||
*
|
||||
@@ -3277,9 +3277,9 @@ file_copy_fallback (GFile *source,
|
||||
* @source: input #GFile
|
||||
* @destination: destination #GFile
|
||||
* @flags: set of #GFileCopyFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @progress_callback: (allow-none) (scope call): function to callback with
|
||||
* @progress_callback: (nullable) (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
|
||||
@@ -3402,9 +3402,9 @@ g_file_copy (GFile *source,
|
||||
* @destination: destination #GFile
|
||||
* @flags: set of #GFileCopyFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @progress_callback: (allow-none): function to callback with progress
|
||||
* @progress_callback: (nullable): 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
|
||||
@@ -3481,9 +3481,9 @@ g_file_copy_finish (GFile *file,
|
||||
* @source: #GFile pointing to the source location
|
||||
* @destination: #GFile pointing to the destination location
|
||||
* @flags: set of #GFileCopyFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @progress_callback: (allow-none) (scope call): #GFileProgressCallback
|
||||
* @progress_callback: (nullable) (scope call): #GFileProgressCallback
|
||||
* function for updates
|
||||
* @progress_callback_data: (closure): gpointer to user data for
|
||||
* the callback function
|
||||
@@ -3617,7 +3617,7 @@ g_file_move (GFile *source,
|
||||
/**
|
||||
* g_file_make_directory:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -3667,7 +3667,7 @@ g_file_make_directory (GFile *file,
|
||||
* g_file_make_directory_async:
|
||||
* @file: input #GFile
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -3727,7 +3727,7 @@ g_file_make_directory_finish (GFile *file,
|
||||
/**
|
||||
* g_file_make_directory_with_parents:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -3851,7 +3851,7 @@ g_file_make_directory_with_parents (GFile *file,
|
||||
* @file: a #GFile with the name of the symlink to create
|
||||
* @symlink_value: (type filename): a string with the path for the target
|
||||
* of the new symlink
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError
|
||||
*
|
||||
@@ -3902,7 +3902,7 @@ g_file_make_symbolic_link (GFile *file,
|
||||
/**
|
||||
* g_file_delete:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -3945,7 +3945,7 @@ g_file_delete (GFile *file,
|
||||
* g_file_delete_async:
|
||||
* @file: input #GFile
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -4009,7 +4009,7 @@ g_file_delete_finish (GFile *file,
|
||||
/**
|
||||
* g_file_trash:
|
||||
* @file: #GFile to send to trash
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4054,7 +4054,7 @@ g_file_trash (GFile *file,
|
||||
* g_file_trash_async:
|
||||
* @file: input #GFile
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -4115,7 +4115,7 @@ g_file_trash_finish (GFile *file,
|
||||
* g_file_set_display_name:
|
||||
* @file: input #GFile
|
||||
* @display_name: a string
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4172,7 +4172,7 @@ g_file_set_display_name (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @display_name: a string
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied
|
||||
@@ -4241,7 +4241,7 @@ g_file_set_display_name_finish (GFile *file,
|
||||
/**
|
||||
* g_file_query_settable_attributes:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4299,7 +4299,7 @@ g_file_query_settable_attributes (GFile *file,
|
||||
/**
|
||||
* g_file_query_writable_namespaces:
|
||||
* @file: input #GFile
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4361,10 +4361,10 @@ g_file_query_writable_namespaces (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @type: The type of the attribute
|
||||
* @value_p: (allow-none): a pointer to the value (or the pointer
|
||||
* @value_p: (nullable): a pointer to the value (or the pointer
|
||||
* itself if the type is a pointer type)
|
||||
* @flags: a set of #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4414,7 +4414,7 @@ g_file_set_attribute (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @info: a #GFileInfo
|
||||
* @flags: #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4506,7 +4506,7 @@ g_file_real_set_attributes_from_info (GFile *file,
|
||||
* @info: a #GFileInfo
|
||||
* @flags: a #GFileQueryInfoFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async): a #GAsyncReadyCallback
|
||||
* @user_data: (closure): a #gpointer
|
||||
@@ -4579,7 +4579,7 @@ g_file_set_attributes_finish (GFile *file,
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @value: a string containing the attribute's value
|
||||
* @flags: #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4611,7 +4611,7 @@ g_file_set_attribute_string (GFile *file,
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @value: a string containing the attribute's new value
|
||||
* @flags: a #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4645,7 +4645,7 @@ g_file_set_attribute_byte_string (GFile *file,
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @value: a #guint32 containing the attribute's new value
|
||||
* @flags: a #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4678,7 +4678,7 @@ g_file_set_attribute_uint32 (GFile *file,
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @value: a #gint32 containing the attribute's new value
|
||||
* @flags: a #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4711,7 +4711,7 @@ g_file_set_attribute_int32 (GFile *file,
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @value: a #guint64 containing the attribute's new value
|
||||
* @flags: a #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4744,7 +4744,7 @@ g_file_set_attribute_uint64 (GFile *file,
|
||||
* @attribute: a string containing the attribute's name
|
||||
* @value: a #guint64 containing the attribute's new value
|
||||
* @flags: a #GFileQueryInfoFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -4774,11 +4774,11 @@ g_file_set_attribute_int64 (GFile *file,
|
||||
* g_file_mount_mountable:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: (allow-none): a #GMountOperation,
|
||||
* @mount_operation: (nullable): a #GMountOperation,
|
||||
* or %NULL to avoid user interaction
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async) (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
*
|
||||
@@ -4862,9 +4862,9 @@ g_file_mount_mountable_finish (GFile *file,
|
||||
* g_file_unmount_mountable:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async) (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
*
|
||||
@@ -4949,11 +4949,11 @@ g_file_unmount_mountable_finish (GFile *file,
|
||||
* g_file_unmount_mountable_with_operation:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: (allow-none): a #GMountOperation,
|
||||
* @mount_operation: (nullable): a #GMountOperation,
|
||||
* or %NULL to avoid user interaction
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async) (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
*
|
||||
@@ -5050,9 +5050,9 @@ g_file_unmount_mountable_with_operation_finish (GFile *file,
|
||||
* g_file_eject_mountable:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async) (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
*
|
||||
@@ -5134,11 +5134,11 @@ g_file_eject_mountable_finish (GFile *file,
|
||||
* g_file_eject_mountable_with_operation:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: (allow-none): a #GMountOperation,
|
||||
* @mount_operation: (nullable): a #GMountOperation,
|
||||
* or %NULL to avoid user interaction
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (scope async) (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (scope async) (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: (closure): the data to pass to callback function
|
||||
*
|
||||
@@ -5231,7 +5231,7 @@ g_file_eject_mountable_with_operation_finish (GFile *file,
|
||||
* g_file_monitor_directory:
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileMonitorFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -5284,7 +5284,7 @@ g_file_monitor_directory (GFile *file,
|
||||
* g_file_monitor_file:
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileMonitorFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -5339,7 +5339,7 @@ g_file_monitor_file (GFile *file,
|
||||
* g_file_monitor:
|
||||
* @file: input #GFile
|
||||
* @flags: a set of #GFileMonitorFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -6375,7 +6375,7 @@ g_file_new_for_uri (const char *uri)
|
||||
|
||||
/**
|
||||
* g_file_new_tmp:
|
||||
* @tmpl: (type filename) (allow-none): Template for the file
|
||||
* @tmpl: (type filename) (nullable): Template for the file
|
||||
* name, as in g_file_open_tmp(), or %NULL for a default template
|
||||
* @iostream: (out): on return, a #GFileIOStream for the created file
|
||||
* @error: a #GError, or %NULL
|
||||
@@ -6563,11 +6563,11 @@ g_file_new_for_commandline_arg_and_cwd (const gchar *arg,
|
||||
* g_file_mount_enclosing_volume:
|
||||
* @location: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: (allow-none): a #GMountOperation
|
||||
* @mount_operation: (nullable): a #GMountOperation
|
||||
* or %NULL to avoid user interaction
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
@@ -6721,9 +6721,9 @@ g_file_query_default_handler (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore
|
||||
* @contents: (out) (transfer full) (element-type guint8) (array length=length): a location to place the contents of the file
|
||||
* @length: (out) (allow-none): a location to place the length of the contents of the file,
|
||||
* @length: (out) (optional): a location to place the length of the contents of the file,
|
||||
* or %NULL if the length is not needed
|
||||
* @etag_out: (out) (allow-none): a location to place the current entity tag for the file,
|
||||
* @etag_out: (out) (optional): a location to place the current entity tag for the file,
|
||||
* or %NULL if the entity tag is not needed
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -7007,9 +7007,9 @@ g_file_load_partial_contents_async (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @res: a #GAsyncResult
|
||||
* @contents: (out) (transfer full) (element-type guint8) (array length=length): a location to place the contents of the file
|
||||
* @length: (out) (allow-none): a location to place the length of the contents of the file,
|
||||
* @length: (out) (optional): a location to place the length of the contents of the file,
|
||||
* or %NULL if the length is not needed
|
||||
* @etag_out: (out) (allow-none): a location to place the current entity tag for the file,
|
||||
* @etag_out: (out) (optional): a location to place the current entity tag for the file,
|
||||
* or %NULL if the entity tag is not needed
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -7105,9 +7105,9 @@ g_file_load_contents_async (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @res: a #GAsyncResult
|
||||
* @contents: (out) (transfer full) (element-type guint8) (array length=length): a location to place the contents of the file
|
||||
* @length: (out) (allow-none): a location to place the length of the contents of the file,
|
||||
* @length: (out) (optional): a location to place the length of the contents of the file,
|
||||
* or %NULL if the length is not needed
|
||||
* @etag_out: (out) (allow-none): a location to place the current entity tag for the file,
|
||||
* @etag_out: (out) (optional): a location to place the current entity tag for the file,
|
||||
* or %NULL if the entity tag is not needed
|
||||
* @error: a #GError, or %NULL
|
||||
*
|
||||
@@ -7141,11 +7141,11 @@ g_file_load_contents_finish (GFile *file,
|
||||
* @file: input #GFile
|
||||
* @contents: (element-type guint8) (array length=length): a string containing the new contents for @file
|
||||
* @length: the length of @contents in bytes
|
||||
* @etag: (allow-none): the old [entity-tag][gfile-etag] for the document,
|
||||
* @etag: (nullable): the old [entity-tag][gfile-etag] for the document,
|
||||
* or %NULL
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @new_etag: (allow-none) (out): a location to a new [entity tag][gfile-etag]
|
||||
* @new_etag: (out) (optional): a location to a new [entity tag][gfile-etag]
|
||||
* for the document. This should be freed with g_free() when no longer
|
||||
* needed, or %NULL
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore
|
||||
@@ -7348,7 +7348,7 @@ replace_contents_open_callback (GObject *obj,
|
||||
* @file: input #GFile
|
||||
* @contents: (element-type guint8) (array length=length): string of contents to replace the file with
|
||||
* @length: the length of @contents in bytes
|
||||
* @etag: (allow-none): a new [entity tag][gfile-etag] for the @file, or %NULL
|
||||
* @etag: (nullable): a new [entity tag][gfile-etag] for the @file, or %NULL
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore
|
||||
@@ -7398,7 +7398,7 @@ g_file_replace_contents_async (GFile *file,
|
||||
* g_file_replace_contents_bytes_async:
|
||||
* @file: input #GFile
|
||||
* @contents: a #GBytes
|
||||
* @etag: (allow-none): a new [entity tag][gfile-etag] for the @file, or %NULL
|
||||
* @etag: (nullable): a new [entity tag][gfile-etag] for the @file, or %NULL
|
||||
* @make_backup: %TRUE if a backup should be created
|
||||
* @flags: a set of #GFileCreateFlags
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore
|
||||
@@ -7453,7 +7453,7 @@ g_file_replace_contents_bytes_async (GFile *file,
|
||||
* g_file_replace_contents_finish:
|
||||
* @file: input #GFile
|
||||
* @res: a #GAsyncResult
|
||||
* @new_etag: (out) (allow-none): a location of a new [entity tag][gfile-etag]
|
||||
* @new_etag: (out) (optional): a location of a new [entity tag][gfile-etag]
|
||||
* for the document. This should be freed with g_free() when it is no
|
||||
* longer needed, or %NULL
|
||||
* @error: a #GError, or %NULL
|
||||
@@ -7651,13 +7651,13 @@ g_file_real_measure_disk_usage_finish (GFile *file,
|
||||
* g_file_measure_disk_usage:
|
||||
* @file: a #GFile
|
||||
* @flags: #GFileMeasureFlags
|
||||
* @cancellable: (allow-none): optional #GCancellable
|
||||
* @progress_callback: (allow-none): a #GFileMeasureProgressCallback
|
||||
* @cancellable: (nullable): optional #GCancellable
|
||||
* @progress_callback: (nullable): a #GFileMeasureProgressCallback
|
||||
* @progress_data: user_data for @progress_callback
|
||||
* @disk_usage: (allow-none) (out): the number of bytes of disk space used
|
||||
* @num_dirs: (allow-none) (out): the number of directories encountered
|
||||
* @num_files: (allow-none) (out): the number of non-directories encountered
|
||||
* @error: (allow-none): %NULL, or a pointer to a %NULL #GError pointer
|
||||
* @disk_usage: (out) (optional): the number of bytes of disk space used
|
||||
* @num_dirs: (out) (optional): the number of directories encountered
|
||||
* @num_files: (out) (optional): the number of non-directories encountered
|
||||
* @error: (nullable): %NULL, or a pointer to a %NULL #GError pointer
|
||||
*
|
||||
* Recursively measures the disk usage of @file.
|
||||
*
|
||||
@@ -7709,10 +7709,10 @@ g_file_measure_disk_usage (GFile *file,
|
||||
* @file: a #GFile
|
||||
* @flags: #GFileMeasureFlags
|
||||
* @io_priority: the [I/O priority][io-priority] of the request
|
||||
* @cancellable: (allow-none): optional #GCancellable
|
||||
* @progress_callback: (allow-none): a #GFileMeasureProgressCallback
|
||||
* @cancellable: (nullable): optional #GCancellable
|
||||
* @progress_callback: (nullable): a #GFileMeasureProgressCallback
|
||||
* @progress_data: user_data for @progress_callback
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback to call when complete
|
||||
* @callback: (nullable): a #GAsyncReadyCallback to call when complete
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
* Recursively measures the disk usage of @file.
|
||||
@@ -7744,10 +7744,10 @@ g_file_measure_disk_usage_async (GFile *file,
|
||||
* g_file_measure_disk_usage_finish:
|
||||
* @file: a #GFile
|
||||
* @result: the #GAsyncResult passed to your #GAsyncReadyCallback
|
||||
* @disk_usage: (allow-none) (out): the number of bytes of disk space used
|
||||
* @num_dirs: (allow-none) (out): the number of directories encountered
|
||||
* @num_files: (allow-none) (out): the number of non-directories encountered
|
||||
* @error: (allow-none): %NULL, or a pointer to a %NULL #GError pointer
|
||||
* @disk_usage: (out) (optional): the number of bytes of disk space used
|
||||
* @num_dirs: (out) (optional): the number of directories encountered
|
||||
* @num_files: (out) (optional): the number of non-directories encountered
|
||||
* @error: (nullable): %NULL, or a pointer to a %NULL #GError pointer
|
||||
*
|
||||
* Collects the results from an earlier call to
|
||||
* g_file_measure_disk_usage_async(). See g_file_measure_disk_usage() for
|
||||
@@ -7776,9 +7776,9 @@ g_file_measure_disk_usage_finish (GFile *file,
|
||||
* g_file_start_mountable:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @start_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 to call when the request is satisfied, or %NULL
|
||||
* @start_operation: (nullable): a #GMountOperation, or %NULL to avoid user interaction
|
||||
* @cancellable: (nullable): optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (nullable): a #GAsyncReadyCallback to call when the request is satisfied, or %NULL
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
* Starts a file of type #G_FILE_TYPE_MOUNTABLE.
|
||||
@@ -7865,11 +7865,11 @@ g_file_start_mountable_finish (GFile *file,
|
||||
* g_file_stop_mountable:
|
||||
* @file: input #GFile
|
||||
* @flags: flags affecting the operation
|
||||
* @mount_operation: (allow-none): a #GMountOperation,
|
||||
* @mount_operation: (nullable): a #GMountOperation,
|
||||
* or %NULL to avoid user interaction.
|
||||
* @cancellable: (allow-none): optional #GCancellable object,
|
||||
* @cancellable: (nullable): optional #GCancellable object,
|
||||
* %NULL to ignore
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
@@ -7955,7 +7955,7 @@ g_file_stop_mountable_finish (GFile *file,
|
||||
* g_file_poll_mountable:
|
||||
* @file: input #GFile
|
||||
* @cancellable: optional #GCancellable object, %NULL to ignore
|
||||
* @callback: (allow-none): a #GAsyncReadyCallback to call
|
||||
* @callback: (nullable): a #GAsyncReadyCallback to call
|
||||
* when the request is satisfied, or %NULL
|
||||
* @user_data: the data to pass to callback function
|
||||
*
|
||||
|
Reference in New Issue
Block a user