#[unsafe(no_mangle)]
pub unsafe extern "C" fn kpal_plugin_new(plugin: *mut Plugin) -> c_intExpand description
Returns a new Plugin instance containing the plugin data and the function vtable.
The plugin is used by the daemon to communicate with it. It contains an opaque pointer to the plugin data and a vtable. The vtable is a struct of function pointers to the methods in the plugin API.
ยงSafety
This function is unsafe because it dereferences a null pointer and assigns data to a
variable of the type MaybeUnit.