VfsFileLookupFunc

typealias VfsFileLookupFunc = (vfs: Vfs, identifier: String) -> File

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.

  • param vfs a #GVfs

  • param 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()

  • return a #GFile for @identifier.