mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Request and deserialize plugin factory from plugin
This commit is contained in:
@@ -45,16 +45,24 @@ struct WantsConfiguration {
|
||||
using Response = Configuration;
|
||||
};
|
||||
|
||||
/**
|
||||
* Marker struct to indicate the other side (the Wine plugin host) should send a
|
||||
* copy of the hosted Windows VST3 plugin's `IPluginFactory{,2,3}` interface.
|
||||
*/
|
||||
struct WantsPluginFactory {
|
||||
using Response = YaPluginFactory;
|
||||
};
|
||||
|
||||
/**
|
||||
* When we send a control message from the plugin to the Wine VST host, this
|
||||
* encodes the information we request or the operation we want to perform. A
|
||||
* request of type `ControlRequest(T)` should send back a `T::Reponse`.
|
||||
*/
|
||||
using ControlRequest = std::variant<>;
|
||||
using ControlRequest = std::variant<WantsPluginFactory>;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s, ControlRequest& payload) {
|
||||
s.ext(payload, bitsery::ext::StdVariant{});
|
||||
s.ext(payload, bitsery::ext::StdVariant{[](S&, WantsPluginFactory&) {}});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user