LV2_State_Interface.restoreFun_t

Restore plugin state using a host-provided retrieve callback.

@param instance The instance handle of the plugin. @param retrieve The host-provided retrieve callback. @param handle An opaque pointer to host data which MUST be passed as the handle parameter to retrieve if it is called. @param flags Currently unused. @param features Extensible parameter for passing any additional features to be used for this restore.

The plugin MAY assume a restored value was set by a previous call to LV2_State_Interface.save() by a plugin with the same URI.

The plugin MUST gracefully fall back to a default value when a value can not be retrieved. This allows the host to reset the plugin state with an empty map.

The handle pointer and store function MUST NOT be used beyond the scope of restore().

This function is in the "Instantiation" threading class as defined by LV2. This means it MUST NOT be called concurrently with any other function on the same plugin instance.

struct LV2_State_Interface
extern (C) nothrow @nogc
alias restoreFun_t = LV2_State_Status function

Meta