mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Implement Wine side for creating plugin instances
This commit is contained in:
@@ -29,6 +29,15 @@ bool ClapLogger::log_request(bool is_host_plugin,
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(bool is_host_plugin,
|
||||
const clap::plugin_factory::Create& request) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
message << "clap_plugin_factory::create(host = <clap_host_t*>, "
|
||||
"plugin_id = \""
|
||||
<< request.plugin_id << "\")";
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(bool is_host_plugin, const WantsConfiguration&) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
message << "Requesting <Configuration>";
|
||||
@@ -40,10 +49,10 @@ bool ClapLogger::log_request(bool is_host_plugin, const WantsConfiguration&) {
|
||||
// });
|
||||
// }
|
||||
|
||||
bool ClapLogger::log_response(
|
||||
void ClapLogger::log_response(
|
||||
bool is_host_plugin,
|
||||
const clap::plugin_factory::ListResponse& response) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
return log_response_base(is_host_plugin, [&](auto& message) {
|
||||
if (response.descriptors) {
|
||||
message << "<clap_plugin_factory containing "
|
||||
<< response.descriptors->size() << " plugin descriptors>";
|
||||
@@ -53,6 +62,19 @@ bool ClapLogger::log_response(
|
||||
});
|
||||
}
|
||||
|
||||
void ClapLogger::log_response(
|
||||
bool is_host_plugin,
|
||||
const clap::plugin_factory::CreateResponse& response) {
|
||||
return log_response_base(is_host_plugin, [&](auto& message) {
|
||||
if (response.instance_id) {
|
||||
message << "<clap_plugin_t* with instance ID "
|
||||
<< *response.instance_id << ">";
|
||||
} else {
|
||||
message << "<nullptr*>";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void ClapLogger::log_response(bool is_host_plugin, const Configuration&) {
|
||||
log_response_base(is_host_plugin,
|
||||
[&](auto& message) { message << "<Configuration>"; });
|
||||
|
||||
Reference in New Issue
Block a user