Add WantsConfiguration logging for CLAP

This commit is contained in:
Robbert van der Helm
2022-08-28 19:40:25 +02:00
parent 7a60cf37ea
commit 8ef8a61e2b
2 changed files with 17 additions and 2 deletions
+11
View File
@@ -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 <Configuration>";
});
}
// 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 << "<Configuration>"; });
}