clap_sys/ext/
thread_check.rs

1use crate::{cstr, host::*};
2
3use std::ffi::CStr;
4
5pub const CLAP_EXT_THREAD_CHECK: &CStr = cstr!("clap.thread-check");
6
7#[repr(C)]
8#[derive(Debug, Copy, Clone)]
9pub struct clap_host_thread_check {
10    pub is_main_thread: Option<unsafe extern "C" fn(host: *const clap_host) -> bool>,
11    pub is_audio_thread: Option<unsafe extern "C" fn(host: *const clap_host) -> bool>,
12}