clap_sys/ext/
latency.rs

1use crate::{cstr, host::*, plugin::*};
2
3use std::ffi::CStr;
4
5pub const CLAP_EXT_LATENCY: &CStr = cstr!("clap.latency");
6
7#[repr(C)]
8#[derive(Debug, Copy, Clone)]
9pub struct clap_plugin_latency {
10    pub get: Option<unsafe extern "C" fn(plugin: *const clap_plugin) -> u32>,
11}
12
13#[repr(C)]
14#[derive(Debug, Copy, Clone)]
15pub struct clap_host_latency {
16    pub changed: Option<unsafe extern "C" fn(host: *const clap_host)>,
17}