Skip to main content

Crate intuicio_plugins

Crate intuicio_plugins 

Source
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§

IncompatibleVersionsError
A plugin was built against an incompatible version of the platform.

Functions§

install_plugin
Loads the plugin at path and lets it register its types and functions.
plugins_version
Returns the version of this crate, which plugins are checked against.