mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Add logging for the note name extension
This commit is contained in:
@@ -290,6 +290,23 @@ bool ClapLogger::log_request(bool is_host_plugin,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ClapLogger::log_request(
|
||||||
|
bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::plugin::Count& request) {
|
||||||
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
|
message << request.instance_id << ": clap_plugin_note_name::count()";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ClapLogger::log_request(bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::plugin::Get& request) {
|
||||||
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
|
message << request.instance_id
|
||||||
|
<< ": clap_plugin_note_name::get(index = " << request.index
|
||||||
|
<< ", *note_name)";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bool ClapLogger::log_request(
|
bool ClapLogger::log_request(
|
||||||
bool is_host_plugin,
|
bool is_host_plugin,
|
||||||
const clap::ext::note_ports::plugin::Count& request) {
|
const clap::ext::note_ports::plugin::Count& request) {
|
||||||
@@ -623,6 +640,15 @@ bool ClapLogger::log_request(bool is_host_plugin,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ClapLogger::log_request(
|
||||||
|
bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::host::Changed& request) {
|
||||||
|
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||||
|
message << request.owner_instance_id
|
||||||
|
<< ": clap_host_note_name::changed()";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bool ClapLogger::log_request(
|
bool ClapLogger::log_request(
|
||||||
bool is_host_plugin,
|
bool is_host_plugin,
|
||||||
const clap::ext::note_ports::host::SupportedDialects& request) {
|
const clap::ext::note_ports::host::SupportedDialects& request) {
|
||||||
@@ -885,6 +911,22 @@ void ClapLogger::log_response(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ClapLogger::log_response(
|
||||||
|
bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::plugin::GetResponse& response) {
|
||||||
|
log_response_base(is_host_plugin, [&](auto& message) {
|
||||||
|
if (response.result) {
|
||||||
|
message << "true, <clap_note_port_info_t* for \""
|
||||||
|
<< response.result->name
|
||||||
|
<< "\" with port = " << response.result->port
|
||||||
|
<< ", key = " << response.result->key
|
||||||
|
<< ", channel = " << response.result->channel << ">";
|
||||||
|
} else {
|
||||||
|
message << "false";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void ClapLogger::log_response(
|
void ClapLogger::log_response(
|
||||||
bool is_host_plugin,
|
bool is_host_plugin,
|
||||||
const clap::ext::note_ports::plugin::GetResponse& response) {
|
const clap::ext::note_ports::plugin::GetResponse& response) {
|
||||||
|
|||||||
@@ -118,6 +118,10 @@ class ClapLogger {
|
|||||||
const clap::ext::gui::plugin::SetParent&);
|
const clap::ext::gui::plugin::SetParent&);
|
||||||
bool log_request(bool is_host_plugin, const clap::ext::gui::plugin::Show&);
|
bool log_request(bool is_host_plugin, const clap::ext::gui::plugin::Show&);
|
||||||
bool log_request(bool is_host_plugin, const clap::ext::gui::plugin::Hide&);
|
bool log_request(bool is_host_plugin, const clap::ext::gui::plugin::Hide&);
|
||||||
|
bool log_request(bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::plugin::Count&);
|
||||||
|
bool log_request(bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::plugin::Get&);
|
||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
const clap::ext::note_ports::plugin::Count&);
|
const clap::ext::note_ports::plugin::Count&);
|
||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
@@ -176,6 +180,8 @@ class ClapLogger {
|
|||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
const clap::ext::gui::host::RequestHide&);
|
const clap::ext::gui::host::RequestHide&);
|
||||||
bool log_request(bool is_host_plugin, const clap::ext::gui::host::Closed&);
|
bool log_request(bool is_host_plugin, const clap::ext::gui::host::Closed&);
|
||||||
|
bool log_request(bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::host::Changed&);
|
||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
const clap::ext::note_ports::host::SupportedDialects&);
|
const clap::ext::note_ports::host::SupportedDialects&);
|
||||||
bool log_request(bool is_host_plugin,
|
bool log_request(bool is_host_plugin,
|
||||||
@@ -218,6 +224,8 @@ class ClapLogger {
|
|||||||
const clap::ext::gui::plugin::GetResizeHintsResponse&);
|
const clap::ext::gui::plugin::GetResizeHintsResponse&);
|
||||||
void log_response(bool is_host_plugin,
|
void log_response(bool is_host_plugin,
|
||||||
const clap::ext::gui::plugin::AdjustSizeResponse&);
|
const clap::ext::gui::plugin::AdjustSizeResponse&);
|
||||||
|
void log_response(bool is_host_plugin,
|
||||||
|
const clap::ext::note_name::plugin::GetResponse&);
|
||||||
void log_response(bool is_host_plugin,
|
void log_response(bool is_host_plugin,
|
||||||
const clap::ext::note_ports::plugin::GetResponse&);
|
const clap::ext::note_ports::plugin::GetResponse&);
|
||||||
void log_response(bool is_host_plugin,
|
void log_response(bool is_host_plugin,
|
||||||
|
|||||||
Reference in New Issue
Block a user