diff --git a/src/common/logging/vst3.cpp b/src/common/logging/vst3.cpp index 964dded0..2655b1d2 100644 --- a/src/common/logging/vst3.cpp +++ b/src/common/logging/vst3.cpp @@ -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 = " + ", paramId = " + << (request.param_id ? std::to_string(*request.param_id) + : "") + << ")"; + }); +} + 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 << "context_menu_id << ">"; + } else { + message << ""; + } + }); +} + void Vst3Logger::log_response( bool is_host_vst, const YaHostApplication::GetNameResponse& response) { diff --git a/src/common/logging/vst3.h b/src/common/logging/vst3.h index 39cea662..bdeea073 100644 --- a/src/common/logging/vst3.h +++ b/src/common/logging/vst3.h @@ -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&);