Skip to main content

LeviRsMainFn

Type Alias LeviRsMainFn 

Source
pub type LeviRsMainFn = unsafe extern "C" fn(api: *const LeviRsApi, self_: LeviRsModHandle, out_vtable: *mut LeviRsModVTable) -> bool;
Expand description

The single symbol every Rust mod must export (see LEVI_RS_MAIN_SYMBOL). Mirrors LeviRsMainFn in the C header. Provided mainly so the loader’s own GetProcAddress cast and any mod-side signature checks share one definition instead of two hand-written copies drifting apart.