Add manual reference counting to GetPluginFactory

Since even though we're passign raw pointers, it's expected that they
are actually `IPtr<T>`s.
This commit is contained in:
Robbert van der Helm
2020-12-07 14:53:55 +01:00
parent 547b11e8ba
commit 9954282065
4 changed files with 46 additions and 37 deletions
+6 -3
View File
@@ -24,11 +24,14 @@ YaPluginFactoryPluginImpl::createInstance(Steinberg::FIDString /*cid*/,
Steinberg::FIDString /*_iid*/,
void** /*obj*/) {
// TODO: Send a control message
return 0;
return Steinberg::kNotImplemented;
}
tresult PLUGIN_API
YaPluginFactoryPluginImpl::setHostContext(Steinberg::FUnknown* /*context*/) {
// TODO: Send a control message
return 0;
// TODO: The docs don't clearly specify what this should be doing, but from
// what I've seen this is only used to pass a `IHostApplication`
// instance. That's used to allow the plugin to create objects in the
// host.
return Steinberg::kNotImplemented;
}