Luna::VFS::DriverDesc
Describes one virtual file system (VFS) driver.
struct Luna::VFS::DriverDesc
One VFS driver describes functions to operate files on a certain kind of media. For example, one ZIP driver may provide functions to read files from one ZIP archive, and the file devices created from the driver represents one real ZIP file opened for reading.
Member objects
-
The user-defined driver data pointer that will be passed to all driver callback functions.
-
void( on_driver_unregister) (void driver_data)
Called when the driver is unregistered from VFS.
-
Called when one new device is mounted.
-
RV( on_unmount) (void driver_data, void *mount_data)
Called when one device is unmounted.
-
Called when VFS::open_file is called on one file or directory belongs to one device of this driver.
-
R< FileAttribute >( on_get_file_attribute) (void driver_data, void *mount_data, const Path &path)
Called when VFS::get_file_attribute is called on one file or directory belongs to one device of this driver.
-
Called when VFS::copy_file is called on two files that both belong to devices of this driver.
-
Called when VFS::move_file is called on two files that both belong to devices of this driver.
-
RV( on_delete_file) (void driver_data, void *mount_data, const Path &path)
Called when VFS::delete_file is called on one file that belongs to devices of this driver.
-
R< Ref< IFileIterator > >( on_open_dir) (void driver_data, void *mount_data, const Path &path)
Called when VFS::open_dir is called on one directory that belongs to devices of this driver.
-
RV( on_create_dir) (void driver_data, void *mount_data, const Path &path)
Called when VFS::create_dir is called on one directory that belongs to devices of this driver.
-
R< Name >( on_get_native_path) (void driver_data, void *mount_data, const Path &path)
Called when VFS::get_native_path is called on one path that belongs to devices of this driver.