pub type GVfsFileLookupFunc = Option<unsafe extern "C" fn(vfs: *mut GVfs, identifier: *const c_char, user_data: gpointer) -> *mut GFile>;
Expand description
GVfsFileLookupFunc: @vfs: a #GVfs @identifier: the identifier to look up a #GFile for. This can either be an URI or a parse name as returned by g_file_get_parse_name() @user_data: user data passed to the function
This function type is used by g_vfs_register_uri_scheme() to make it possible for a client to associate an URI scheme to a different #GFile implementation.
The client should return a reference to the new file that has been created for @uri, or %NULL to continue with the default implementation.
Returns: (transfer full): a #GFile for @identifier.
Since: 2.50
Aliased Type§
enum GVfsFileLookupFunc {
None,
Some(unsafe extern "C" fn(*mut _GVfs, *const i8, *mut c_void) -> *mut _GFile),
}