Implement Wine side for creating plugin instances

This commit is contained in:
Robbert van der Helm
2022-09-08 00:11:04 +02:00
parent e74c25445d
commit 423534f373
6 changed files with 113 additions and 26 deletions
+4 -2
View File
@@ -22,6 +22,7 @@
#include "../bitsery/ext/message-reference.h"
#include "../utils.h"
#include "clap/host.h"
#include "clap/plugin-factory.h"
#include "common.h"
@@ -38,8 +39,9 @@
*/
// FIXME: Remove the `WantsConfiguration`. For some reason bitsery just won't
// serialize this without it.
using ClapMainThreadControlRequest =
std::variant<WantsConfiguration, clap::plugin_factory::List>;
using ClapMainThreadControlRequest = std::variant<WantsConfiguration,
clap::plugin_factory::List,
clap::plugin_factory::Create>;
template <typename S>
void serialize(S& s, ClapMainThreadControlRequest& payload) {