Luna::VFS::DriverDesc::on_mount
R< void * >(* on_mount) (void *driver_data, const c8 *driver_path, const Path &mount_dir, typeinfo_t params_type, void *params_data)
Called when one new device is mounted.
Parameters
-
in driver_data
The user-provided driver data.
-
in driver_path
The driver native path passed to mount.
-
in mount_dir
The directory used as the root directory of the mounted file device.
-
in params_type
The type of the additional driver parameter object passed to mount.
-
in params_data
The pointer to the additional driver parameter object passed to mount.
Return value
Returns the mount data that identifies the mounted device.