Bundle associated messages with their interfaces

Once we start implementing all of the control messages/callbacks things
could quickly get out of hand otherwise.
This commit is contained in:
Robbert van der Helm
2020-12-08 11:24:05 +01:00
parent 5e85517130
commit ed743e6f22
5 changed files with 23 additions and 20 deletions
+16
View File
@@ -35,6 +35,22 @@ using Steinberg::TBool, Steinberg::int32, Steinberg::tresult;
*/
class YaComponent : public Steinberg::Vst::IComponent {
public:
/**
* Request the Wine plugin host to instantiate a new IComponent to pass
* through a call to `IPluginFactory::createInstance(cid, IComponent::iid,
* ...)`.
*/
struct Create {
using Response = YaComponent&;
Steinberg::TUID cid;
template <typename S>
void serialize(S& s) {
s.container1b(cid);
}
};
YaComponent();
/**