retro_vfs_open_t

Type Alias retro_vfs_open_t 

Source
pub type retro_vfs_open_t = Option<unsafe extern "C" fn(path: *const c_char, mode: c_uint, hints: c_uint) -> *mut retro_vfs_file_handle>;
Expand description

Open a file for reading or writing. If path points to a directory, this will fail. Returns the opaque file handle, or NULL for error. Introduced in VFS API v1

Aliased Type§

pub enum retro_vfs_open_t {
    None,
    Some(unsafe extern "C" fn(*const i8, u32, u32) -> *mut retro_vfs_file_handle),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const i8, u32, u32) -> *mut retro_vfs_file_handle)

Some value of type T.