Allow serializing CLAP plugin factory list message

This commit is contained in:
Robbert van der Helm
2022-08-31 16:28:36 +02:00
parent edc0cbbe38
commit ec8028f78c
5 changed files with 59 additions and 38 deletions
+15 -10
View File
@@ -70,16 +70,21 @@ bool ClapBridge::inhibits_event_loop() noexcept {
void ClapBridge::run() {
set_realtime_priority(true);
// TODO: Listen on the socket
// sockets_.host_plugin_control_.receive_messages(
// std::nullopt,
// overload{
// [&](const ClapPluginFactoryProxy::Construct&)
// -> ClapPluginFactoryProxy::Construct::Response {
// return ClapPluginFactoryProxy::ConstructArgs(
// module_->getFactory().get());
// },
// });
sockets_.host_plugin_main_thread_control_.receive_messages(
std::nullopt,
overload{
[&](const WantsConfiguration&) -> WantsConfiguration::Response {
// FIXME: This overload shouldn't be here, but
// bitsery simply won't allow us to serialize the
// variant without it.
return {};
},
[&](const clap::plugin_factory::List&)
-> clap::plugin_factory::List::Response {
// FIXME: Actually load this
return clap::plugin_factory::ListResponse{};
},
});
}
// TODO: Implement this