Struct machinery_api::foundation::PluginsApi [−][src]
#[repr(C)]pub struct PluginsApi { pub load: Option<unsafe extern "C" fn(path: *const c_char, hot_reload: bool) -> u64>, pub unload: Option<unsafe extern "C" fn(plugin: u64)>, pub reload: Option<unsafe extern "C" fn(plugin: u64)>, pub set_path: Option<unsafe extern "C" fn(plugin: u64, path: *const c_char)>, pub check_hot_reload: Option<unsafe extern "C" fn() -> bool>, pub reload_count: Option<unsafe extern "C" fn() -> u64>, pub enumerate: Option<unsafe extern "C" fn(directory: *const c_char, ta: *mut TempAllocatorI) -> *mut *const c_char>, pub load_plugin_context: Option<unsafe extern "C" fn() -> *const c_char>, pub plugin_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>, pub app_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>, }
Fields
load: Option<unsafe extern "C" fn(path: *const c_char, hot_reload: bool) -> u64>unload: Option<unsafe extern "C" fn(plugin: u64)>reload: Option<unsafe extern "C" fn(plugin: u64)>set_path: Option<unsafe extern "C" fn(plugin: u64, path: *const c_char)>check_hot_reload: Option<unsafe extern "C" fn() -> bool>reload_count: Option<unsafe extern "C" fn() -> u64>enumerate: Option<unsafe extern "C" fn(directory: *const c_char, ta: *mut TempAllocatorI) -> *mut *const c_char>load_plugin_context: Option<unsafe extern "C" fn() -> *const c_char>plugin_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>app_dllpath: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, exe: *const c_char, name: *const c_char) -> *const c_char>Implementations
pub unsafe fn enumerate(
&self,
directory: *const c_char,
ta: *mut TempAllocatorI
) -> *mut *const c_char
pub unsafe fn plugin_dllpath(
&self,
ta: *mut TempAllocatorI,
exe: *const c_char,
name: *const c_char
) -> *const c_char
pub unsafe fn app_dllpath(
&self,
ta: *mut TempAllocatorI,
exe: *const c_char,
name: *const c_char
) -> *const c_char
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PluginsApi
impl Send for PluginsApi
impl Sync for PluginsApi
impl Unpin for PluginsApi
impl UnwindSafe for PluginsApi
Blanket Implementations
Mutably borrows from an owned value. Read more