pub type GFileIface = _GFileIface;Expand description
GFileIface:
@g_iface: The parent interface.
@dup: Duplicates a #GFile.
@hash: Creates a hash of a #GFile.
@equal: Checks equality of two given #GFiles.
@is_native: Checks to see if a file is native to the system.
@has_uri_scheme: Checks to see if a #GFile has a given URI scheme.
@get_uri_scheme: Gets the URI scheme for a #GFile.
@get_basename: Gets the basename for a given #GFile.
@get_path: Gets the current path within a #GFile.
@get_uri: Gets a URI for the path within a #GFile.
@get_parse_name: Gets the parsed name for the #GFile.
@get_parent: Gets the parent directory for the #GFile.
@prefix_matches: Checks whether a #GFile contains a specified file.
@get_relative_path: Gets the path for a #GFile relative to a given path.
@resolve_relative_path: Resolves a relative path for a #GFile to an absolute path.
@get_child_for_display_name: Gets the child #GFile for a given display name.
@enumerate_children: Gets a #GFileEnumerator with the children of a #GFile.
@enumerate_children_async: Asynchronously gets a #GFileEnumerator with the children of a #GFile.
@enumerate_children_finish: Finishes asynchronously enumerating the children.
@query_info: Gets the #GFileInfo for a #GFile.
@query_info_async: Asynchronously gets the #GFileInfo for a #GFile.
@query_info_finish: Finishes an asynchronous query info operation.
@query_filesystem_info: Gets a #GFileInfo for the file system #GFile is on.
@query_filesystem_info_async: Asynchronously gets a #GFileInfo for the file system #GFile is on.
@query_filesystem_info_finish: Finishes asynchronously getting the file system info.
@find_enclosing_mount: Gets a #GMount for the #GFile.
@find_enclosing_mount_async: Asynchronously gets the #GMount for a #GFile.
@find_enclosing_mount_finish: Finishes asynchronously getting the volume.
@set_display_name: Sets the display name for a #GFile.
@set_display_name_async: Asynchronously sets a #GFile’s display name.
@set_display_name_finish: Finishes asynchronously setting a #GFile’s display name.
@query_settable_attributes: Returns a list of #GFileAttributeInfos that can be set.
@_query_settable_attributes_async: Asynchronously gets a list of #GFileAttributeInfos that can be set.
@_query_settable_attributes_finish: Finishes asynchronously querying settable attributes.
@query_writable_namespaces: Returns a list of #GFileAttributeInfo namespaces that are writable.
@_query_writable_namespaces_async: Asynchronously gets a list of #GFileAttributeInfo namespaces that are writable.
@_query_writable_namespaces_finish: Finishes asynchronously querying the writable namespaces.
@set_attribute: Sets a #GFileAttributeInfo.
@set_attributes_from_info: Sets a #GFileAttributeInfo with information from a #GFileInfo.
@set_attributes_async: Asynchronously sets a file’s attributes.
@set_attributes_finish: Finishes setting a file’s attributes asynchronously.
@read_fn: Reads a file asynchronously.
@read_async: Asynchronously reads a file.
@read_finish: Finishes asynchronously reading a file.
@append_to: Writes to the end of a file.
@append_to_async: Asynchronously writes to the end of a file.
@append_to_finish: Finishes an asynchronous file append operation.
@create: Creates a new file.
@create_async: Asynchronously creates a file.
@create_finish: Finishes asynchronously creating a file.
@replace: Replaces the contents of a file.
@replace_async: Asynchronously replaces the contents of a file.
@replace_finish: Finishes asynchronously replacing a file.
@delete_file: Deletes a file.
@delete_file_async: Asynchronously deletes a file.
@delete_file_finish: Finishes an asynchronous delete.
@trash: Sends a #GFile to the Trash location.
@trash_async: Asynchronously sends a #GFile to the Trash location.
@trash_finish: Finishes an asynchronous file trashing operation.
@make_directory: Makes a directory.
@make_directory_async: Asynchronously makes a directory.
@make_directory_finish: Finishes making a directory asynchronously.
@make_symbolic_link: (nullable): Makes a symbolic link. %NULL if symbolic
links are unsupported.
@make_symbolic_link_async: Asynchronously makes a symbolic link
@make_symbolic_link_finish: Finishes making a symbolic link asynchronously.
@copy: (nullable): Copies a file. %NULL if copying is unsupported, which will
cause GFile to use a fallback copy method where it reads from the
source and writes to the destination.
@copy_async: Asynchronously copies a file.
@copy_finish: Finishes an asynchronous copy operation.
@move: Moves a file.
@move_async: Asynchronously moves a file. Since: 2.72
@move_finish: Finishes an asynchronous move operation. Since: 2.72
@mount_mountable: Mounts a mountable object.
@mount_mountable_finish: Finishes a mounting operation.
@unmount_mountable: Unmounts a mountable object.
@unmount_mountable_finish: Finishes an unmount operation.
@eject_mountable: Ejects a mountable.
@eject_mountable_finish: Finishes an eject operation.
@mount_enclosing_volume: Mounts a specified location.
@mount_enclosing_volume_finish: Finishes mounting a specified location.
@monitor_dir: Creates a #GFileMonitor for the location.
@monitor_file: Creates a #GFileMonitor for the location.
@open_readwrite: Open file read/write. Since 2.22.
@open_readwrite_async: Asynchronously opens file read/write. Since 2.22.
@open_readwrite_finish: Finishes an asynchronous open read/write. Since 2.22.
@create_readwrite: Creates file read/write. Since 2.22.
@create_readwrite_async: Asynchronously creates file read/write. Since 2.22.
@create_readwrite_finish: Finishes an asynchronous creates read/write. Since 2.22.
@replace_readwrite: Replaces file read/write. Since 2.22.
@replace_readwrite_async: Asynchronously replaces file read/write. Since 2.22.
@replace_readwrite_finish: Finishes an asynchronous replace read/write. Since 2.22.
@start_mountable: Starts a mountable object. Since 2.22.
@start_mountable_finish: Finishes a start operation. Since 2.22.
@stop_mountable: Stops a mountable. Since 2.22.
@stop_mountable_finish: Finishes a stop operation. Since 2.22.
@supports_thread_contexts: a boolean that indicates whether the #GFile implementation supports thread-default contexts. Since 2.22.
@unmount_mountable_with_operation: Unmounts a mountable object using a #GMountOperation. Since 2.22.
@unmount_mountable_with_operation_finish: Finishes an unmount operation using a #GMountOperation. Since 2.22.
@eject_mountable_with_operation: Ejects a mountable object using a #GMountOperation. Since 2.22.
@eject_mountable_with_operation_finish: Finishes an eject operation using a #GMountOperation. Since 2.22.
@poll_mountable: Polls a mountable object for media changes. Since 2.22.
@poll_mountable_finish: Finishes a poll operation for media changes. Since 2.22.
@measure_disk_usage: Recursively measures the disk usage of @file. Since 2.38
@measure_disk_usage_async: Asynchronously recursively measures the disk usage of @file. Since 2.38
@measure_disk_usage_finish: Finishes an asynchronous recursive measurement of the disk usage of @file. Since 2.38
An interface for writing VFS file handles.
Aliased Type§
#[repr(C)]pub struct GFileIface {Show 104 fields
pub g_iface: _GTypeInterface,
pub dup: Option<unsafe extern "C" fn(*mut _GFile) -> *mut _GFile>,
pub hash: Option<unsafe extern "C" fn(*mut _GFile) -> u32>,
pub equal: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile) -> i32>,
pub is_native: Option<unsafe extern "C" fn(*mut _GFile) -> i32>,
pub has_uri_scheme: Option<unsafe extern "C" fn(*mut _GFile, *const u8) -> i32>,
pub get_uri_scheme: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>,
pub get_basename: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>,
pub get_path: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>,
pub get_uri: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>,
pub get_parse_name: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>,
pub get_parent: Option<unsafe extern "C" fn(*mut _GFile) -> *mut _GFile>,
pub prefix_matches: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile) -> i32>,
pub get_relative_path: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile) -> *mut u8>,
pub resolve_relative_path: Option<unsafe extern "C" fn(*mut _GFile, *const u8) -> *mut _GFile>,
pub get_child_for_display_name: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut *mut _GError) -> *mut _GFile>,
pub enumerate_children: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileEnumerator>,
pub enumerate_children_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub enumerate_children_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileEnumerator>,
pub query_info: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileInfo>,
pub query_info_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub query_info_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileInfo>,
pub query_filesystem_info: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileInfo>,
pub query_filesystem_info_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub query_filesystem_info_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileInfo>,
pub find_enclosing_mount: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GMount>,
pub find_enclosing_mount_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub find_enclosing_mount_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GMount>,
pub set_display_name: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut _GCancellable, *mut *mut _GError) -> *mut _GFile>,
pub set_display_name_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub set_display_name_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFile>,
pub query_settable_attributes: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileAttributeInfoList>,
pub _query_settable_attributes_async: Option<unsafe extern "C" fn()>,
pub _query_settable_attributes_finish: Option<unsafe extern "C" fn()>,
pub query_writable_namespaces: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileAttributeInfoList>,
pub _query_writable_namespaces_async: Option<unsafe extern "C" fn()>,
pub _query_writable_namespaces_finish: Option<unsafe extern "C" fn()>,
pub set_attribute: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, *mut c_void, u32, *mut _GCancellable, *mut *mut _GError) -> i32>,
pub set_attributes_from_info: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFileInfo, u32, *mut _GCancellable, *mut *mut _GError) -> i32>,
pub set_attributes_async: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFileInfo, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub set_attributes_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GFileInfo, *mut *mut _GError) -> i32>,
pub read_fn: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileInputStream>,
pub read_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub read_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileInputStream>,
pub append_to: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileOutputStream>,
pub append_to_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub append_to_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileOutputStream>,
pub create: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileOutputStream>,
pub create_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub create_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileOutputStream>,
pub replace: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileOutputStream>,
pub replace_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub replace_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileOutputStream>,
pub delete_file: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> i32>,
pub delete_file_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub delete_file_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub trash: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> i32>,
pub trash_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub trash_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub make_directory: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> i32>,
pub make_directory_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub make_directory_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub make_symbolic_link: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut _GCancellable, *mut *mut _GError) -> i32>,
pub make_symbolic_link_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub make_symbolic_link_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub copy: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, *mut *mut _GError) -> i32>,
pub copy_async: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub copy_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub move_: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, *mut *mut _GError) -> i32>,
pub move_async: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub move_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub mount_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub mount_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFile>,
pub unmount_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub unmount_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub eject_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub eject_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub mount_enclosing_volume: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub mount_enclosing_volume_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub monitor_dir: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileMonitor>,
pub monitor_file: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileMonitor>,
pub open_readwrite: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileIOStream>,
pub open_readwrite_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub open_readwrite_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileIOStream>,
pub create_readwrite: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileIOStream>,
pub create_readwrite_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub create_readwrite_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileIOStream>,
pub replace_readwrite: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileIOStream>,
pub replace_readwrite_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub replace_readwrite_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileIOStream>,
pub start_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub start_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub stop_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub stop_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub supports_thread_contexts: i32,
pub unmount_mountable_with_operation: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub unmount_mountable_with_operation_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub eject_mountable_with_operation: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub eject_mountable_with_operation_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub poll_mountable: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub poll_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
pub measure_disk_usage: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(i32, u64, u64, u64, *mut c_void)>, *mut c_void, *mut u64, *mut u64, *mut u64, *mut *mut _GError) -> i32>,
pub measure_disk_usage_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(i32, u64, u64, u64, *mut c_void)>, *mut c_void, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub measure_disk_usage_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut u64, *mut u64, *mut u64, *mut *mut _GError) -> i32>,
}Fields§
§g_iface: _GTypeInterface§dup: Option<unsafe extern "C" fn(*mut _GFile) -> *mut _GFile>§hash: Option<unsafe extern "C" fn(*mut _GFile) -> u32>§equal: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile) -> i32>§is_native: Option<unsafe extern "C" fn(*mut _GFile) -> i32>§has_uri_scheme: Option<unsafe extern "C" fn(*mut _GFile, *const u8) -> i32>§get_uri_scheme: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>§get_basename: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>§get_path: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>§get_uri: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>§get_parse_name: Option<unsafe extern "C" fn(*mut _GFile) -> *mut u8>§get_parent: Option<unsafe extern "C" fn(*mut _GFile) -> *mut _GFile>§prefix_matches: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile) -> i32>§get_relative_path: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile) -> *mut u8>§resolve_relative_path: Option<unsafe extern "C" fn(*mut _GFile, *const u8) -> *mut _GFile>§get_child_for_display_name: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut *mut _GError) -> *mut _GFile>§enumerate_children: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileEnumerator>§enumerate_children_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§enumerate_children_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileEnumerator>§query_info: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileInfo>§query_info_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§query_info_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileInfo>§query_filesystem_info: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileInfo>§query_filesystem_info_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§query_filesystem_info_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileInfo>§find_enclosing_mount: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GMount>§find_enclosing_mount_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§find_enclosing_mount_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GMount>§set_display_name: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut _GCancellable, *mut *mut _GError) -> *mut _GFile>§set_display_name_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§set_display_name_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFile>§query_settable_attributes: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileAttributeInfoList>§_query_settable_attributes_async: Option<unsafe extern "C" fn()>§_query_settable_attributes_finish: Option<unsafe extern "C" fn()>§query_writable_namespaces: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileAttributeInfoList>§_query_writable_namespaces_async: Option<unsafe extern "C" fn()>§_query_writable_namespaces_finish: Option<unsafe extern "C" fn()>§set_attribute: Option<unsafe extern "C" fn(*mut _GFile, *const u8, u32, *mut c_void, u32, *mut _GCancellable, *mut *mut _GError) -> i32>§set_attributes_from_info: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFileInfo, u32, *mut _GCancellable, *mut *mut _GError) -> i32>§set_attributes_async: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFileInfo, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§set_attributes_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GFileInfo, *mut *mut _GError) -> i32>§read_fn: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileInputStream>§read_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§read_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileInputStream>§append_to: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileOutputStream>§append_to_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§append_to_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileOutputStream>§create: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileOutputStream>§create_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§create_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileOutputStream>§replace: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileOutputStream>§replace_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§replace_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileOutputStream>§delete_file: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> i32>§delete_file_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§delete_file_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§trash: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> i32>§trash_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§trash_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§make_directory: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> i32>§make_directory_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§make_directory_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§make_symbolic_link: Option<unsafe extern "C" fn(*mut _GFile, *const u8, *mut _GCancellable, *mut *mut _GError) -> i32>§make_symbolic_link_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§make_symbolic_link_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§copy: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, *mut *mut _GError) -> i32>§copy_async: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§copy_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§move_: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, *mut *mut _GError) -> i32>§move_async: Option<unsafe extern "C" fn(*mut _GFile, *mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(i64, i64, *mut c_void)>, *mut c_void, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§move_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§mount_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§mount_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFile>§unmount_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§unmount_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§eject_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§eject_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§mount_enclosing_volume: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§mount_enclosing_volume_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§monitor_dir: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileMonitor>§monitor_file: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileMonitor>§open_readwrite: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileIOStream>§open_readwrite_async: Option<unsafe extern "C" fn(*mut _GFile, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§open_readwrite_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileIOStream>§create_readwrite: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileIOStream>§create_readwrite_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§create_readwrite_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileIOStream>§replace_readwrite: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, *mut _GCancellable, *mut *mut _GError) -> *mut _GFileIOStream>§replace_readwrite_async: Option<unsafe extern "C" fn(*mut _GFile, *const u8, i32, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§replace_readwrite_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> *mut _GFileIOStream>§start_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§start_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§stop_mountable: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§stop_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§supports_thread_contexts: i32§unmount_mountable_with_operation: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§unmount_mountable_with_operation_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§eject_mountable_with_operation: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GMountOperation, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§eject_mountable_with_operation_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§poll_mountable: Option<unsafe extern "C" fn(*mut _GFile, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§poll_mountable_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut *mut _GError) -> i32>§measure_disk_usage: Option<unsafe extern "C" fn(*mut _GFile, u32, *mut _GCancellable, Option<unsafe extern "C" fn(i32, u64, u64, u64, *mut c_void)>, *mut c_void, *mut u64, *mut u64, *mut u64, *mut *mut _GError) -> i32>§measure_disk_usage_async: Option<unsafe extern "C" fn(*mut _GFile, u32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(i32, u64, u64, u64, *mut c_void)>, *mut c_void, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§measure_disk_usage_finish: Option<unsafe extern "C" fn(*mut _GFile, *mut _GAsyncResult, *mut u64, *mut u64, *mut u64, *mut *mut _GError) -> i32>