diff --git a/src/common/logging/clap.cpp b/src/common/logging/clap.cpp index 971da3ca..e9166646 100644 --- a/src/common/logging/clap.cpp +++ b/src/common/logging/clap.cpp @@ -29,7 +29,18 @@ ClapLogger::ClapLogger(Logger& generic_logger) : logger_(generic_logger) {} // }); // } +bool ClapLogger::log_request(bool is_host_plugin, const WantsConfiguration&) { + return log_request_base(is_host_plugin, [&](auto& message) { + message << "Requesting "; + }); +} + // void ClapLogger::log_response(bool is_host_plugin, const Ack&) { // log_response_base(is_host_plugin, [&](auto& message) { message << "ACK"; // }); // } + +void ClapLogger::log_response(bool is_host_plugin, const Configuration&) { + log_response_base(is_host_plugin, + [&](auto& message) { message << ""; }); +} diff --git a/src/common/logging/clap.h b/src/common/logging/clap.h index 4521592d..9c654ff5 100644 --- a/src/common/logging/clap.h +++ b/src/common/logging/clap.h @@ -18,7 +18,7 @@ #include -// #include "../serialization/clap.h" +#include "../serialization/clap.h" #include "common.h" /** @@ -45,7 +45,7 @@ class ClapLogger { // `log_request()` call returned `true`. This way we can filter out the // log message for the response together with the request. - // TODO: M ain thread rquests + // TODO: Main thread rquests // bool log_request(bool is_host_plugin, // const ClapPluginFactoryProxy::Construct&); @@ -53,6 +53,8 @@ class ClapLogger { // bool log_request(bool is_host_plugin, // const YaAudioProcessor::SetBusArrangements&); + bool log_request(bool is_host_plugin, const WantsConfiguration&); + // TOOD: Main thread responses // void log_response(bool is_host_plugin, const Ack&); // void log_response(bool is_host_plugin, @@ -63,6 +65,8 @@ class ClapLogger { // void log_response(bool is_host_plugin, // const YaAudioProcessor::GetBusArrangementResponse&); + void log_response(bool is_host_plugin, const Configuration&); + // TODO: Universal response // template // void log_response(bool is_host_plugin,