Struct Ravet Plugin Entry V1
#[repr(C)]pub struct RavetPluginEntryV1 {Show 26 fields
pub version: u32,
pub byte_size: u32,
pub product: *const RavetPluginProductV1,
pub parameter: unsafe extern "C" fn(u32, *mut RavetPluginParameterV1) -> i32,
pub parameter_index: extern "C" fn(u32) -> i32,
pub value_to_text: unsafe extern "C" fn(u32, f64, *mut c_char, u32) -> i32,
pub text_to_value: unsafe extern "C" fn(u32, *const c_char, *mut f64) -> i32,
pub normalize: unsafe extern "C" fn(u32, f64, *mut f64) -> i32,
pub denormalize: unsafe extern "C" fn(u32, f64, *mut f64) -> i32,
pub create: extern "C" fn() -> *mut c_void,
pub destroy: unsafe extern "C" fn(*mut c_void),
pub get_value: unsafe extern "C" fn(*const c_void, u32) -> f64,
pub set_value: unsafe extern "C" fn(*mut c_void, u32, f64) -> i32,
pub save_state: unsafe extern "C" fn(*mut c_void, *mut u8, u32, *mut u32) -> i32,
pub load_state: unsafe extern "C" fn(*mut c_void, *const u8, u32) -> i32,
pub prepare: unsafe extern "C" fn(*mut c_void, *const NativeProcessorConfigV1) -> i32,
pub process: unsafe extern "C" fn(*mut c_void, *const NativeProcessorBusV1, u32, u32, *const NativeEventV1, u32, *const NativeTransportV1, *mut NativeEventV1, u32, *mut NativeProcessorResultV1) -> i32,
pub reset: unsafe extern "C" fn(*mut c_void) -> i32,
pub deactivate: unsafe extern "C" fn(*mut c_void) -> i32,
pub timing: unsafe extern "C" fn(*mut c_void, *mut NativeProcessorTimingV1) -> i32,
pub latency_changed: unsafe extern "C" fn(*mut c_void) -> u32,
pub take_edits: unsafe extern "C" fn(*mut c_void, *mut RavetPluginEditV1, u32) -> u32,
pub editor_open: unsafe extern "C" fn(*mut c_void, u32, *mut c_void, u32, u32) -> i32,
pub editor_resize: unsafe extern "C" fn(*mut c_void, u32, u32) -> i32,
pub editor_close: unsafe extern "C" fn(*mut c_void),
pub editor_idle: unsafe extern "C" fn(*mut c_void),
}Expand description
RavetPluginEntryV1: the table returned by ravet_plugin_v1. See
include/RavetPlugin.h for each function’s contract.
Fields§
§version: u32§byte_size: u32§product: *const RavetPluginProductV1§parameter: unsafe extern "C" fn(u32, *mut RavetPluginParameterV1) -> i32§parameter_index: extern "C" fn(u32) -> i32§value_to_text: unsafe extern "C" fn(u32, f64, *mut c_char, u32) -> i32§text_to_value: unsafe extern "C" fn(u32, *const c_char, *mut f64) -> i32§normalize: unsafe extern "C" fn(u32, f64, *mut f64) -> i32§denormalize: unsafe extern "C" fn(u32, f64, *mut f64) -> i32§create: extern "C" fn() -> *mut c_void§destroy: unsafe extern "C" fn(*mut c_void)§get_value: unsafe extern "C" fn(*const c_void, u32) -> f64§set_value: unsafe extern "C" fn(*mut c_void, u32, f64) -> i32§save_state: unsafe extern "C" fn(*mut c_void, *mut u8, u32, *mut u32) -> i32§load_state: unsafe extern "C" fn(*mut c_void, *const u8, u32) -> i32§prepare: unsafe extern "C" fn(*mut c_void, *const NativeProcessorConfigV1) -> i32§process: unsafe extern "C" fn(*mut c_void, *const NativeProcessorBusV1, u32, u32, *const NativeEventV1, u32, *const NativeTransportV1, *mut NativeEventV1, u32, *mut NativeProcessorResultV1) -> i32§reset: unsafe extern "C" fn(*mut c_void) -> i32§deactivate: unsafe extern "C" fn(*mut c_void) -> i32§timing: unsafe extern "C" fn(*mut c_void, *mut NativeProcessorTimingV1) -> i32§latency_changed: unsafe extern "C" fn(*mut c_void) -> u32§take_edits: unsafe extern "C" fn(*mut c_void, *mut RavetPluginEditV1, u32) -> u32§editor_open: unsafe extern "C" fn(*mut c_void, u32, *mut c_void, u32, u32) -> i32§editor_resize: unsafe extern "C" fn(*mut c_void, u32, u32) -> i32§editor_close: unsafe extern "C" fn(*mut c_void)§editor_idle: unsafe extern "C" fn(*mut c_void)Trait Implementations§
§impl Clone for RavetPluginEntryV1
impl Clone for RavetPluginEntryV1
§fn clone(&self) -> RavetPluginEntryV1
fn clone(&self) -> RavetPluginEntryV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RavetPluginEntryV1
Auto Trait Implementations§
impl !Send for RavetPluginEntryV1
impl !Sync for RavetPluginEntryV1
impl Freeze for RavetPluginEntryV1
impl RefUnwindSafe for RavetPluginEntryV1
impl Unpin for RavetPluginEntryV1
impl UnsafeUnpin for RavetPluginEntryV1
impl UnwindSafe for RavetPluginEntryV1
Blanket Implementations§
impl<T> AutoreleaseSafe for T
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more