Struct clap_sys::plugin::clap_plugin
source · [−]#[repr(C)]pub struct clap_plugin {
pub desc: *const clap_plugin_descriptor,
pub plugin_data: *mut c_void,
pub init: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>,
pub destroy: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub activate: Option<unsafe extern "C" fn(plugin: *const clap_plugin, sample_rate: f64, min_frames_count: u32, max_frames_count: u32) -> bool>,
pub deactivate: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub start_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>,
pub stop_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub reset: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
pub process: Option<unsafe extern "C" fn(plugin: *const clap_plugin, process: *const clap_process) -> clap_process_status>,
pub get_extension: Option<unsafe extern "C" fn(plugin: *const clap_plugin, id: *const c_char) -> *const c_void>,
pub on_main_thread: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>,
}Fields
desc: *const clap_plugin_descriptorplugin_data: *mut c_voidinit: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>destroy: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>activate: Option<unsafe extern "C" fn(plugin: *const clap_plugin, sample_rate: f64, min_frames_count: u32, max_frames_count: u32) -> bool>deactivate: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>start_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> bool>stop_processing: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>reset: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>process: Option<unsafe extern "C" fn(plugin: *const clap_plugin, process: *const clap_process) -> clap_process_status>get_extension: Option<unsafe extern "C" fn(plugin: *const clap_plugin, id: *const c_char) -> *const c_void>on_main_thread: Option<unsafe extern "C" fn(plugin: *const clap_plugin)>Trait Implementations
sourceimpl Clone for clap_plugin
impl Clone for clap_plugin
sourcefn clone(&self) -> clap_plugin
fn clone(&self) -> clap_plugin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for clap_plugin
impl Debug for clap_plugin
impl Copy for clap_plugin
impl Send for clap_plugin
impl Sync for clap_plugin
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more