clap_sys/ext/
state.rs

1use crate::{cstr, host::*, plugin::*, stream::*};
2
3use std::ffi::CStr;
4
5pub const CLAP_EXT_STATE: &CStr = cstr!("clap.state");
6
7#[repr(C)]
8#[derive(Debug, Copy, Clone)]
9pub struct clap_plugin_state {
10    pub save: Option<
11        unsafe extern "C" fn(plugin: *const clap_plugin, stream: *const clap_ostream) -> bool,
12    >,
13    pub load: Option<
14        unsafe extern "C" fn(plugin: *const clap_plugin, stream: *const clap_istream) -> bool,
15    >,
16}
17
18#[repr(C)]
19#[derive(Debug, Copy, Clone)]
20pub struct clap_host_state {
21    pub mark_dirty: Option<unsafe extern "C" fn(host: *const clap_host)>,
22}