Implement IComponentHandler::restartComponent()

The base IComponentHandler is now fully implemented.
This commit is contained in:
Robbert van der Helm
2020-12-19 15:51:48 +01:00
parent 25575e2d3a
commit 1b454371a6
6 changed files with 42 additions and 4 deletions
@@ -125,6 +125,26 @@ class YaComponentHandler : public Steinberg::Vst::IComponentHandler {
};
virtual tresult PLUGIN_API endEdit(Steinberg::Vst::ParamID id) override = 0;
/**
* Message to pass through a call to
* `IComponentHandler::restartComponent(flags)` to the component handler
* provided by the host.
*/
struct RestartComponent {
using Response = UniversalTResult;
native_size_t owner_instance_id;
int32 flags;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
s.value4b(flags);
}
};
virtual tresult PLUGIN_API restartComponent(int32 flags) override = 0;
protected: