Expand description
Loading Intuicio plugins from dynamic libraries.
A plugin is a cdylib that exports two C functions:
ⓘ
#[unsafe(no_mangle)]
pub extern "C" fn version() -> IntuicioVersion { core_version() }
#[unsafe(no_mangle)]
pub extern "C" fn install(registry: &mut Registry) { /* register here */ }install_plugin loads the library, compares the two versions and calls
install. A loaded library is kept alive for the rest of the thread, since
the registry now holds pointers into it.
Structs§
- Incompatible
Versions Error - A plugin was built against an incompatible version of the platform.
Functions§
- install_
plugin - Loads the plugin at
pathand lets it register its types and functions. - plugins_
version - Returns the version of this crate, which plugins are checked against.