mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Add even list fields to the flush message
This commit is contained in:
@@ -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 = <clap_input_events_t* "
|
||||
"containing "
|
||||
<< request.in.size() << " events>, *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 << "<clap_output_events_t* containing " << response.out.size()
|
||||
<< " events>";
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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 <typename S>
|
||||
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 <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
// TODO: Input events
|
||||
s.object(in);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user