Skip to main content

PluginValueFn

Type Alias PluginValueFn 

Source
pub type PluginValueFn = extern "C" fn(host: *const HostApi) -> FfiReturn;
Expand description

The signature of a plugin value creator.

Builds one module constant at import time, using the host callbacks to construct the value. May use re-entering callbacks. Returning FfiStatus::Exception makes the import fail with that exception.