mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add logging for IComponentHandler3
This commit is contained in:
@@ -1002,6 +1002,19 @@ bool Vst3Logger::log_request(
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(
|
||||
bool is_host_vst,
|
||||
const YaComponentHandler3::CreateContextMenu& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << request.owner_instance_id
|
||||
<< ": IComponentHandler3::createContextMenu(plugView = "
|
||||
"<IPlugView*>, paramId = "
|
||||
<< (request.param_id ? std::to_string(*request.param_id)
|
||||
: "<nullptr>")
|
||||
<< ")";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaHostApplication::GetName& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
@@ -1421,6 +1434,19 @@ void Vst3Logger::log_response(
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaComponentHandler3::CreateContextMenuResponse& response) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
if (response.context_menu_args) {
|
||||
message << "<IContextMenu* #"
|
||||
<< response.context_menu_args->context_menu_id << ">";
|
||||
} else {
|
||||
message << "<nullptr>";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
bool is_host_vst,
|
||||
const YaHostApplication::GetNameResponse& response) {
|
||||
|
||||
@@ -183,6 +183,8 @@ class Vst3Logger {
|
||||
const YaComponentHandler2::StartGroupEdit&);
|
||||
bool log_request(bool is_host_vst,
|
||||
const YaComponentHandler2::FinishGroupEdit&);
|
||||
bool log_request(bool is_host_vst,
|
||||
const YaComponentHandler3::CreateContextMenu&);
|
||||
bool log_request(bool is_host_vst, const YaHostApplication::GetName&);
|
||||
bool log_request(bool is_host_vst, const YaPlugFrame::ResizeView&);
|
||||
bool log_request(bool is_host_vst,
|
||||
@@ -248,6 +250,8 @@ class Vst3Logger {
|
||||
void log_response(bool is_host_vst,
|
||||
const YaComponent::GetRoutingInfoResponse&);
|
||||
|
||||
void log_response(bool is_host_vst,
|
||||
const YaComponentHandler3::CreateContextMenuResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaHostApplication::GetNameResponse&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user