6 static CLAP_CONSTEXPR
const char CLAP_EXT_STATE
[] = "clap.state";
12 typedef struct clap_plugin_state
{
13 // Saves the plugin state into stream.
14 // Returns true if the state was correctly saved.
16 bool (CLAP_ABI
*save
)(const clap_plugin_t
*plugin
, const clap_ostream_t
*stream
);
18 // Loads the plugin state from stream.
19 // Returns true if the state was correctly restored.
21 bool (CLAP_ABI
*load
)(const clap_plugin_t
*plugin
, const clap_istream_t
*stream
);
22 } clap_plugin_state_t
;
24 typedef struct clap_host_state
{
25 // Tell the host that the plugin state has changed and should be saved again.
26 // If a parameter value changes, then it is implicit that the state is dirty.
28 void (CLAP_ABI
*mark_dirty
)(const clap_host_t
*host
);