1
2
3
4
5
6
7
8
9
10
11
12
use crate::{cstr, host::*};

use std::ffi::CStr;

pub const CLAP_EXT_THREAD_CHECK: &CStr = cstr!("clap.thread-check");

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct clap_host_thread_check {
    pub is_main_thread: Option<unsafe extern "C" fn(host: *const clap_host) -> bool>,
    pub is_audio_thread: Option<unsafe extern "C" fn(host: *const clap_host) -> bool>,
}