use crate::{cstr, host::*, plugin::*};
use std::ffi::CStr;
pub const CLAP_EXT_CV: &CStr = cstr!("clap.cv.draft/0");
pub const CLAP_PORT_CV: &CStr = cstr!("cv");
pub const CLAP_CV_VALUE: u32 = 0;
pub const CLAP_CV_GATE: u32 = 1;
pub const CLAP_CV_PITCH: u32 = 2;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clap_plugin_cv {
pub get_channel_type: Option<
unsafe extern "C" fn(
plugin: *const clap_plugin,
is_input: bool,
port_index: u32,
channel_index: u32,
channel_type: *mut u32,
) -> bool,
>,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clap_host_cv {
pub changed: Option<unsafe extern "C" fn(host: *const clap_host)>,
}