Skip to main content

EntryDescriptor

Type Alias EntryDescriptor 

Source
pub type EntryDescriptor = clap_plugin_entry;
Expand description

A C-FFI compatible descriptor of a CLAP file’s entry point.

This type is what is statically exposed in the plugin’s dynamic library file, and is loaded by the host upon loading the file.

This type is what is exposed by the clack-plugin crate, and can be loaded using the clack-host crate.

Aliased Type§

#[repr(C)]
pub struct EntryDescriptor { pub clap_version: clap_version, pub init: Option<unsafe extern "C" fn(*const i8) -> bool>, pub deinit: Option<unsafe extern "C" fn()>, pub get_factory: Option<unsafe extern "C" fn(*const i8) -> *const c_void>, }

Fields§

§clap_version: clap_version§init: Option<unsafe extern "C" fn(*const i8) -> bool>§deinit: Option<unsafe extern "C" fn()>§get_factory: Option<unsafe extern "C" fn(*const i8) -> *const c_void>

Trait Implementations§

Source§

impl EntryProvider for &'static EntryDescriptor

Source§

fn entry_pointer(&self) -> NonNull<EntryDescriptor>

Returns a pointer to the EntryDescriptor this provides. Read more
Source§

impl EntryProvider for Box<EntryDescriptor>

Source§

fn entry_pointer(&self) -> NonNull<EntryDescriptor>

Returns a pointer to the EntryDescriptor this provides. Read more