|
|
|
@ -822,7 +822,7 @@ g_file_resolve_relative_path (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @attributes: an attribute query string.
|
|
|
|
|
* @flags: a set of #GFileQueryInfoFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: #GError for error reporting.
|
|
|
|
|
*
|
|
|
|
|
* Gets the requested information about the files in a directory. The result
|
|
|
|
@ -884,9 +884,10 @@ g_file_enumerate_children (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileQueryInfoFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the
|
|
|
|
|
* request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously gets the requested information about the files in a directory. The result
|
|
|
|
|
* is a #GFileEnumerator object that will give out #GFileInfo objects for
|
|
|
|
@ -957,7 +958,7 @@ g_file_enumerate_children_finish (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_query_exists:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
*
|
|
|
|
|
* Utility function to check if a particular file exists. This is
|
|
|
|
|
* implemented using g_file_query_info() and as such does blocking I/O.
|
|
|
|
@ -1007,7 +1008,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
*
|
|
|
|
|
* Utility function to inspect the #GFileType of a file. This is
|
|
|
|
|
* implemented using g_file_query_info() and as such does blocking I/O.
|
|
|
|
@ -1047,7 +1048,7 @@ g_file_query_file_type (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @attributes: an attribute query string.
|
|
|
|
|
* @flags: a set of #GFileQueryInfoFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError.
|
|
|
|
|
*
|
|
|
|
|
* Gets the requested information about specified @file. The result
|
|
|
|
@ -1113,9 +1114,9 @@ g_file_query_info (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileQueryInfoFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously gets the requested information about specified @file. The result
|
|
|
|
|
* is a #GFileInfo object that contains key-value attributes (such as type or size
|
|
|
|
@ -1187,7 +1188,7 @@ g_file_query_info_finish (GFile *file,
|
|
|
|
|
* g_file_query_filesystem_info:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @attributes: an attribute query string.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError.
|
|
|
|
|
*
|
|
|
|
|
* Similar to g_file_query_info(), but obtains information
|
|
|
|
@ -1247,9 +1248,9 @@ g_file_query_filesystem_info (GFile *file,
|
|
|
|
|
* @attributes: an attribute query string.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously gets the requested information about the filesystem
|
|
|
|
|
* that the specified @file is on. The result is a #GFileInfo object
|
|
|
|
@ -1320,7 +1321,7 @@ g_file_query_filesystem_info_finish (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_find_enclosing_mount:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError.
|
|
|
|
|
*
|
|
|
|
|
* Gets a #GMount for the #GFile.
|
|
|
|
@ -1367,9 +1368,9 @@ g_file_find_enclosing_mount (GFile *file,
|
|
|
|
|
* @file: a #GFile
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously gets the mount for the file.
|
|
|
|
|
*
|
|
|
|
@ -1435,7 +1436,7 @@ g_file_find_enclosing_mount_finish (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_read:
|
|
|
|
|
* @file: #GFile to read.
|
|
|
|
|
* @cancellable: a #GCancellable
|
|
|
|
|
* @cancellable: (allow-none): a #GCancellable
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Opens a file for reading. The result is a #GFileInputStream that
|
|
|
|
@ -1482,7 +1483,7 @@ g_file_read (GFile *file,
|
|
|
|
|
* g_file_append_to:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Gets an output stream for appending data to the file. If
|
|
|
|
@ -1536,7 +1537,7 @@ g_file_append_to (GFile *file,
|
|
|
|
|
* g_file_create:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Creates a new file and returns an output stream for writing to it.
|
|
|
|
@ -1596,7 +1597,7 @@ g_file_create (GFile *file,
|
|
|
|
|
* current #GFile, or #NULL to ignore.
|
|
|
|
|
* @make_backup: %TRUE if a backup should be created.
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Returns an output stream for overwriting the file, possibly
|
|
|
|
@ -1680,7 +1681,7 @@ g_file_replace (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_open_readwrite:
|
|
|
|
|
* @file: #GFile to open
|
|
|
|
|
* @cancellable: a #GCancellable
|
|
|
|
|
* @cancellable: (allow-none): a #GCancellable
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Opens an existing file for reading and writing. The result is
|
|
|
|
@ -1731,7 +1732,7 @@ g_file_open_readwrite (GFile *file,
|
|
|
|
|
* g_file_create_readwrite:
|
|
|
|
|
* @file: a #GFile
|
|
|
|
|
* @flags: a set of #GFileCreateFlags
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @error: return location for a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Creates a new file and returns a stream for reading and writing to it.
|
|
|
|
@ -1794,7 +1795,7 @@ g_file_create_readwrite (GFile *file,
|
|
|
|
|
* current #GFile, or #NULL to ignore
|
|
|
|
|
* @make_backup: %TRUE if a backup should be created
|
|
|
|
|
* @flags: a set of #GFileCreateFlags
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @error: return location for a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Returns an output stream for overwriting the file in readwrite mode,
|
|
|
|
@ -1846,9 +1847,9 @@ g_file_replace_readwrite (GFile *file,
|
|
|
|
|
* @file: input #GFile
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously opens @file for reading.
|
|
|
|
|
*
|
|
|
|
@ -1916,9 +1917,9 @@ g_file_read_finish (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously opens @file for appending.
|
|
|
|
|
*
|
|
|
|
@ -1988,9 +1989,9 @@ g_file_append_to_finish (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously creates a new file and returns an output stream for writing to it.
|
|
|
|
|
* The file must not already exist.
|
|
|
|
@ -2064,9 +2065,9 @@ g_file_create_finish (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously overwrites the file, replacing the contents, possibly
|
|
|
|
|
* creating a backup copy of the file first.
|
|
|
|
@ -2141,9 +2142,9 @@ g_file_replace_finish (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously opens @file for reading and writing.
|
|
|
|
|
*
|
|
|
|
@ -2216,9 +2217,9 @@ g_file_open_readwrite_finish (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileCreateFlags
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously creates a new file and returns a stream for reading and
|
|
|
|
|
* writing to it. The file must not already exist.
|
|
|
|
@ -2296,9 +2297,9 @@ g_file_create_readwrite_finish (GFile *file,
|
|
|
|
|
* @flags: a set of #GFileCreateFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously overwrites the file in read-write mode, replacing the
|
|
|
|
|
* contents, possibly creating a backup copy of the file first.
|
|
|
|
@ -2570,7 +2571,7 @@ build_attribute_list_for_copy (GFileAttributeInfoList *attributes,
|
|
|
|
|
* @source: a #GFile with attributes.
|
|
|
|
|
* @destination: a #GFile to copy attributes to.
|
|
|
|
|
* @flags: a set of #GFileCopyFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, %NULL to ignore.
|
|
|
|
|
*
|
|
|
|
|
* Copies the file attributes from @source to @destination.
|
|
|
|
@ -2988,7 +2989,7 @@ file_copy_fallback (GFile *source,
|
|
|
|
|
* @source: input #GFile.
|
|
|
|
|
* @destination: destination #GFile
|
|
|
|
|
* @flags: set of #GFileCopyFlags
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @progress_callback: (scope call): function to callback with progress information
|
|
|
|
|
* @progress_callback_data: (closure): user data to pass to @progress_callback
|
|
|
|
|
* @error: #GError to set on error, or %NULL
|
|
|
|
@ -3105,7 +3106,7 @@ g_file_copy (GFile *source,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* g_file_copy_async:
|
|
|
|
|
* g_file_copy_async: (skip)
|
|
|
|
|
* @source: input #GFile.
|
|
|
|
|
* @destination: destination #GFile
|
|
|
|
|
* @flags: set of #GFileCopyFlags
|
|
|
|
@ -3193,7 +3194,7 @@ 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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @progress_callback: (scope call): #GFileProgressCallback function for updates.
|
|
|
|
|
* @progress_callback_data: (closure): gpointer to user data for the callback function.
|
|
|
|
|
* @error: #GError for returning error conditions, or %NULL
|
|
|
|
@ -3320,7 +3321,7 @@ g_file_move (GFile *source,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_make_directory
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Creates a directory. Note that this will only create a child directory of
|
|
|
|
@ -3368,7 +3369,7 @@ g_file_make_directory (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_make_directory_with_parents:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Creates a directory and any parent directories that may not exist similar to
|
|
|
|
@ -3450,7 +3451,7 @@ g_file_make_directory_with_parents (GFile *file,
|
|
|
|
|
* g_file_make_symbolic_link:
|
|
|
|
|
* @file: a #GFile with the name of the symlink to create
|
|
|
|
|
* @symlink_value: a string with the path for the target of the new symlink
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError.
|
|
|
|
|
*
|
|
|
|
|
* Creates a symbolic link named @file which contains the string
|
|
|
|
@ -3500,7 +3501,7 @@ g_file_make_symbolic_link (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_delete:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Deletes a file. If the @file is a directory, it will only be deleted if it
|
|
|
|
@ -3541,7 +3542,7 @@ g_file_delete (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_trash:
|
|
|
|
|
* @file: #GFile to send to trash.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sends @file to the "Trashcan", if possible. This is similar to
|
|
|
|
@ -3585,7 +3586,7 @@ g_file_trash (GFile *file,
|
|
|
|
|
* g_file_set_display_name:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @display_name: a string.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Renames @file to the specified display name.
|
|
|
|
@ -3641,9 +3642,9 @@ g_file_set_display_name (GFile *file,
|
|
|
|
|
* @display_name: a string.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously sets the display name for a given #GFile.
|
|
|
|
|
*
|
|
|
|
@ -3711,7 +3712,7 @@ g_file_set_display_name_finish (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_query_settable_attributes:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Obtain the list of settable attributes for the file.
|
|
|
|
@ -3767,7 +3768,7 @@ g_file_query_settable_attributes (GFile *file,
|
|
|
|
|
/**
|
|
|
|
|
* g_file_query_writable_namespaces:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Obtain the list of attribute namespaces where new attributes
|
|
|
|
@ -3824,7 +3825,7 @@ g_file_query_writable_namespaces (GFile *file,
|
|
|
|
|
* @type: The type of the attribute
|
|
|
|
|
* @value_p: a pointer to the value (or the pointer itself if the type is a pointer type)
|
|
|
|
|
* @flags: a set of #GFileQueryInfoFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets an attribute in the file with attribute name @attribute to @value.
|
|
|
|
@ -3870,7 +3871,7 @@ g_file_set_attribute (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @info: a #GFileInfo.
|
|
|
|
|
* @flags: #GFileQueryInfoFlags
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Tries to set all attributes in the #GFileInfo on the target values,
|
|
|
|
@ -3963,9 +3964,9 @@ g_file_real_set_attributes_from_info (GFile *file,
|
|
|
|
|
* @flags: a #GFileQueryInfoFlags.
|
|
|
|
|
* @io_priority: the <link linkend="io-priority">I/O priority</link>
|
|
|
|
|
* of the request.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback.
|
|
|
|
|
* @user_data: a #gpointer.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback.
|
|
|
|
|
* @user_data: (closure): a #gpointer.
|
|
|
|
|
*
|
|
|
|
|
* Asynchronously sets the attributes of @file with @info.
|
|
|
|
|
*
|
|
|
|
@ -4034,7 +4035,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_STRING to @value.
|
|
|
|
@ -4065,7 +4066,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING to @value.
|
|
|
|
@ -4098,7 +4099,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_UINT32 to @value.
|
|
|
|
@ -4130,7 +4131,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_INT32 to @value.
|
|
|
|
@ -4162,7 +4163,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_UINT64 to @value.
|
|
|
|
@ -4194,7 +4195,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: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Sets @attribute of type %G_FILE_ATTRIBUTE_TYPE_INT64 to @value.
|
|
|
|
@ -4224,9 +4225,9 @@ g_file_set_attribute_int64 (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: flags affecting the operation
|
|
|
|
|
* @mount_operation: a #GMountOperation, or %NULL to avoid user interaction.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Mounts a file of type G_FILE_TYPE_MOUNTABLE.
|
|
|
|
|
* Using @mount_operation, you can request callbacks when, for instance,
|
|
|
|
@ -4311,9 +4312,9 @@ g_file_mount_mountable_finish (GFile *file,
|
|
|
|
|
* g_file_unmount_mountable:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: flags affecting the operation
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Unmounts a file of type G_FILE_TYPE_MOUNTABLE.
|
|
|
|
|
*
|
|
|
|
@ -4399,9 +4400,9 @@ g_file_unmount_mountable_finish (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: flags affecting the operation
|
|
|
|
|
* @mount_operation: a #GMountOperation, or %NULL to avoid user interaction.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Unmounts a file of type G_FILE_TYPE_MOUNTABLE.
|
|
|
|
|
*
|
|
|
|
@ -4498,9 +4499,9 @@ g_file_unmount_mountable_with_operation_finish (GFile *file,
|
|
|
|
|
* g_file_eject_mountable:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: flags affecting the operation
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Starts an asynchronous eject on a mountable.
|
|
|
|
|
* When this operation has completed, @callback will be called with
|
|
|
|
@ -4584,9 +4585,9 @@ g_file_eject_mountable_finish (GFile *file,
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: flags affecting the operation
|
|
|
|
|
* @mount_operation: a #GMountOperation, or %NULL to avoid user interaction.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: the data to pass to callback function
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied, or %NULL.
|
|
|
|
|
* @user_data: (closure): the data to pass to callback function
|
|
|
|
|
*
|
|
|
|
|
* Starts an asynchronous eject on a mountable.
|
|
|
|
|
* When this operation has completed, @callback will be called with
|
|
|
|
@ -4681,7 +4682,7 @@ g_file_eject_mountable_with_operation_finish (GFile *file,
|
|
|
|
|
* g_file_monitor_directory:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: a set of #GFileMonitorFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL.
|
|
|
|
|
*
|
|
|
|
|
* Obtains a directory monitor for the given file.
|
|
|
|
@ -4725,7 +4726,7 @@ g_file_monitor_directory (GFile *file,
|
|
|
|
|
* g_file_monitor_file:
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @flags: a set of #GFileMonitorFlags.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @error: a #GError, or %NULL.
|
|
|
|
|
*
|
|
|
|
|
* Obtains a file monitor for the given file. If no file notification
|
|
|
|
@ -4770,7 +4771,7 @@ g_file_monitor_file (GFile *file,
|
|
|
|
|
* g_file_monitor:
|
|
|
|
|
* @file: input #GFile
|
|
|
|
|
* @flags: a set of #GFileMonitorFlags
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
|
|
|
|
|
* @error: a #GError, or %NULL
|
|
|
|
|
*
|
|
|
|
|
* Obtains a file or directory monitor for the given file, depending
|
|
|
|
@ -6379,7 +6380,7 @@ load_contents_open_callback (GObject *obj,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* g_file_load_partial_contents_async:
|
|
|
|
|
* g_file_load_partial_contents_async: (skip)
|
|
|
|
|
* @file: input #GFile.
|
|
|
|
|
* @cancellable: optional #GCancellable object, %NULL to ignore.
|
|
|
|
|
* @read_more_callback: a #GFileReadMoreCallback to receive partial data and to specify whether further data should be read.
|
|
|
|
|