mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-10 14:22:16 +02:00
Add logging for CLAP callback requests
This commit is contained in:
@@ -22,6 +22,18 @@
|
||||
|
||||
ClapLogger::ClapLogger(Logger& generic_logger) : logger_(generic_logger) {}
|
||||
|
||||
void ClapLogger::log_callback_request(size_t instance_id) {
|
||||
log_request_base(false, Logger::Verbosity::all_events, [&](auto& message) {
|
||||
message << "clap_host::request_callback()";
|
||||
});
|
||||
}
|
||||
|
||||
void ClapLogger::log_on_main_thread(size_t instance_id) {
|
||||
log_request_base(true, Logger::Verbosity::all_events, [&](auto& message) {
|
||||
message << "clap_plugin::on_main_thread()";
|
||||
});
|
||||
}
|
||||
|
||||
bool ClapLogger::log_request(bool is_host_plugin,
|
||||
const clap::plugin_factory::List&) {
|
||||
return log_request_base(is_host_plugin, [&](auto& message) {
|
||||
|
||||
@@ -37,6 +37,17 @@ class ClapLogger {
|
||||
|
||||
// TODO: Logging for extension queries, factory type queries
|
||||
|
||||
/**
|
||||
* Logging for `clap_host::request_callback()`. This is handled purely on
|
||||
* the Wine plugin host side.
|
||||
*/
|
||||
void log_callback_request(size_t instance_id);
|
||||
/**
|
||||
* Logging for `clap_plugin::on_main_thread()`. This is handled purely on
|
||||
* the Wine plugin host side.
|
||||
*/
|
||||
void log_on_main_thread(size_t instance_id);
|
||||
|
||||
// For every object we send using `ClapMessageHandler` we have overloads
|
||||
// that print information about the request and the response. The boolean
|
||||
// flag here indicates whether the request was initiated on the host side
|
||||
|
||||
Reference in New Issue
Block a user