Struct libretro_sys::CoreAPI[][src]

pub struct CoreAPI {
    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

Trait Implementations

impl Clone for CoreAPI
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CoreAPI
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for CoreAPI

impl Sync for CoreAPI