Rename PluginObject to InstanceInterfaces

To make it a bit clearer that this is a holder of interface smart
pointers.
This commit is contained in:
Robbert van der Helm
2020-12-17 17:54:57 +01:00
parent fe2de8de8d
commit b2cee1e750
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -22,9 +22,10 @@
#include "vst3-impls/host-application.h"
PluginObject::PluginObject() {}
InstanceInterfaces::InstanceInterfaces() {}
PluginObject::PluginObject(Steinberg::IPtr<Steinberg::FUnknown> object)
InstanceInterfaces::InstanceInterfaces(
Steinberg::IPtr<Steinberg::FUnknown> object)
: object(object),
audio_processor(object),
component(object),
+4 -4
View File
@@ -32,10 +32,10 @@
* `IHostApplication` instance passed to the plugin during
* `IPluginBase::initialize()`.
*/
struct PluginObject {
PluginObject();
struct InstanceInterfaces {
InstanceInterfaces();
PluginObject(Steinberg::IPtr<Steinberg::FUnknown> object);
InstanceInterfaces(Steinberg::IPtr<Steinberg::FUnknown> object);
/**
* If the host passes an `IHostApplication` during
@@ -149,6 +149,6 @@ class Vst3Bridge : public HostBridge {
* will cause all pointers to it to get dropped and the object to be cleaned
* up.
*/
std::map<size_t, PluginObject> object_instances;
std::map<size_t, InstanceInterfaces> object_instances;
std::mutex object_instances_mutex;
};