Implement IEditController::setComponentState()

This commit is contained in:
Robbert van der Helm
2020-12-17 21:50:04 +01:00
parent 96c630e608
commit 7eb7e87953
6 changed files with 38 additions and 3 deletions
@@ -78,6 +78,24 @@ class YaEditController2 : public Steinberg::Vst::IEditController,
// From `IEditController`
/**
* Message to pass through a call to
* `IEditController::setComponentState(state)` to the Wine plugin host.
*/
struct SetComponentState {
using Response = UniversalTResult;
native_size_t instance_id;
VectorStream state;
template <typename S>
void serialize(S& s) {
s.value8b(instance_id);
s.object(state);
}
};
virtual tresult PLUGIN_API
setComponentState(Steinberg::IBStream* state) override = 0;