From cd5d79ccf3cf1f4e011c74c4a2a3c07dc62e0567 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 1 Oct 2022 17:03:42 +0200 Subject: [PATCH] Add even list fields to the flush message --- src/common/logging/clap.cpp | 9 +++++---- src/common/serialization/clap/ext/params.h | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/common/logging/clap.cpp b/src/common/logging/clap.cpp index 31c8faa7..ad3ff8d0 100644 --- a/src/common/logging/clap.cpp +++ b/src/common/logging/clap.cpp @@ -380,9 +380,10 @@ bool ClapLogger::log_request(bool is_host_plugin, bool ClapLogger::log_request(bool is_host_plugin, const clap::ext::params::plugin::Flush& request) { return log_request_base(is_host_plugin, [&](auto& message) { - // TODO: Add event counts message << request.instance_id - << ": clap_plugin_params::flush(*in, *out)"; + << ": clap_plugin_params::flush(*in = , *out)"; }); } @@ -746,8 +747,8 @@ void ClapLogger::log_response( bool is_host_plugin, const clap::ext::params::plugin::FlushResponse& response) { log_response_base(is_host_plugin, [&](auto& message) { - // TODO: Log output event count - message << "TODO: Log output event count"; + message << ""; }); } diff --git a/src/common/serialization/clap/ext/params.h b/src/common/serialization/clap/ext/params.h index ba3fbaa6..363109dc 100644 --- a/src/common/serialization/clap/ext/params.h +++ b/src/common/serialization/clap/ext/params.h @@ -24,6 +24,7 @@ #include "../../../bitsery/ext/in-place-optional.h" #include "../../common.h" +#include "../events.h" // Serialization messages for `clap/ext/params.h` @@ -215,11 +216,11 @@ struct TextToValue { * The response to the `clap::ext::params::Flush` message defined below. */ struct FlushResponse { - // TODO: Output events + clap::events::EventList out; template void serialize(S& s) { - // TODO: Output events + s.object(out); } }; @@ -230,12 +231,12 @@ struct Flush { using Response = FlushResponse; native_size_t instance_id; - // TODO: Input events + clap::events::EventList in; template void serialize(S& s) { s.value8b(instance_id); - // TODO: Input events + s.object(in); } };