Add stubs for IUnitHandler2

This commit is contained in:
Robbert van der Helm
2021-01-10 23:49:58 +01:00
parent cbb8ebaf5d
commit 89111d2f5f
4 changed files with 21 additions and 2 deletions
@@ -20,6 +20,7 @@
#include "component-handler/component-handler-2.h"
#include "component-handler/component-handler-3.h"
#include "component-handler/component-handler.h"
#include "component-handler/unit-handler-2.h"
#include "component-handler/unit-handler.h"
#pragma GCC diagnostic push
@@ -36,7 +37,8 @@
class Vst3ComponentHandlerProxy : public YaComponentHandler,
public YaComponentHandler2,
public YaComponentHandler3,
public YaUnitHandler {
public YaUnitHandler,
public YaUnitHandler2 {
public:
/**
* These are the arguments for constructing a
@@ -64,6 +66,7 @@ class Vst3ComponentHandlerProxy : public YaComponentHandler,
YaComponentHandler2::ConstructArgs component_handler_2_args;
YaComponentHandler3::ConstructArgs component_handler_3_args;
YaUnitHandler::ConstructArgs unit_handler_args;
YaUnitHandler2::ConstructArgs unit_handler_2_args;
template <typename S>
void serialize(S& s) {
@@ -72,6 +75,7 @@ class Vst3ComponentHandlerProxy : public YaComponentHandler,
s.object(component_handler_2_args);
s.object(component_handler_3_args);
s.object(unit_handler_args);
s.object(unit_handler_2_args);
}
};