pub struct CoreAPI {Show 25 fields
pub retro_set_environment: unsafe extern "C" fn(callback: EnvironmentFn),
pub retro_set_video_refresh: unsafe extern "C" fn(callback: VideoRefreshFn),
pub retro_set_audio_sample: unsafe extern "C" fn(callback: AudioSampleFn),
pub retro_set_audio_sample_batch: unsafe extern "C" fn(callback: AudioSampleBatchFn),
pub retro_set_input_poll: unsafe extern "C" fn(callback: InputPollFn),
pub retro_set_input_state: unsafe extern "C" fn(callback: InputStateFn),
pub retro_init: unsafe extern "C" fn(),
pub retro_deinit: unsafe extern "C" fn(),
pub retro_api_version: unsafe extern "C" fn() -> c_uint,
pub retro_get_system_info: unsafe extern "C" fn(info: *mut SystemInfo),
pub retro_get_system_av_info: unsafe extern "C" fn(info: *mut SystemAvInfo),
pub retro_set_controller_port_device: unsafe extern "C" fn(port: c_uint, device: c_uint),
pub retro_reset: unsafe extern "C" fn(),
pub retro_run: unsafe extern "C" fn(),
pub retro_serialize_size: unsafe extern "C" fn() -> size_t,
pub retro_serialize: unsafe extern "C" fn(data: *mut c_void, size: size_t),
pub retro_unserialize: unsafe extern "C" fn(data: *const c_void, size: size_t) -> bool,
pub retro_cheat_reset: unsafe extern "C" fn(),
pub retro_cheat_set: unsafe extern "C" fn(index: c_uint, enabled: bool, code: *const c_char),
pub retro_load_game: unsafe extern "C" fn(game: *const GameInfo) -> bool,
pub retro_load_game_special: unsafe extern "C" fn(game_type: c_uint, info: *const GameInfo, num_info: size_t) -> bool,
pub retro_unload_game: unsafe extern "C" fn(),
pub retro_get_region: unsafe extern "C" fn() -> c_uint,
pub retro_get_memory_data: unsafe extern "C" fn(id: c_uint) -> *mut c_void,
pub retro_get_memory_size: unsafe extern "C" fn(id: c_uint) -> size_t,
}
Fields§
§retro_set_environment: unsafe extern "C" fn(callback: EnvironmentFn)
§retro_set_video_refresh: unsafe extern "C" fn(callback: VideoRefreshFn)
§retro_set_audio_sample: unsafe extern "C" fn(callback: AudioSampleFn)
§retro_set_audio_sample_batch: unsafe extern "C" fn(callback: AudioSampleBatchFn)
§retro_set_input_poll: unsafe extern "C" fn(callback: InputPollFn)
§retro_set_input_state: unsafe extern "C" fn(callback: InputStateFn)
§retro_init: unsafe extern "C" fn()
§retro_deinit: unsafe extern "C" fn()
§retro_api_version: unsafe extern "C" fn() -> c_uint
§retro_get_system_info: unsafe extern "C" fn(info: *mut SystemInfo)
§retro_get_system_av_info: unsafe extern "C" fn(info: *mut SystemAvInfo)
§retro_set_controller_port_device: unsafe extern "C" fn(port: c_uint, device: c_uint)
§retro_reset: unsafe extern "C" fn()
§retro_run: unsafe extern "C" fn()
§retro_serialize_size: unsafe extern "C" fn() -> size_t
§retro_serialize: unsafe extern "C" fn(data: *mut c_void, size: size_t)
§retro_unserialize: unsafe extern "C" fn(data: *const c_void, size: size_t) -> bool
§retro_cheat_reset: unsafe extern "C" fn()
§retro_cheat_set: unsafe extern "C" fn(index: c_uint, enabled: bool, code: *const c_char)
§retro_load_game: unsafe extern "C" fn(game: *const GameInfo) -> bool
§retro_load_game_special: unsafe extern "C" fn(game_type: c_uint, info: *const GameInfo, num_info: size_t) -> bool
§retro_unload_game: unsafe extern "C" fn()
§retro_get_region: unsafe extern "C" fn() -> c_uint
§retro_get_memory_data: unsafe extern "C" fn(id: c_uint) -> *mut c_void
§retro_get_memory_size: unsafe extern "C" fn(id: c_uint) -> size_t
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreAPI
impl RefUnwindSafe for CoreAPI
impl Send for CoreAPI
impl Sync for CoreAPI
impl Unpin for CoreAPI
impl UnwindSafe for CoreAPI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more