mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add logging for IUnitData structs
This commit is contained in:
@@ -461,6 +461,30 @@ bool Vst3Logger::log_request(bool is_host_vst,
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaUnitData::UnitDataSupported&) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << "IUnitData::unitDataSupported()";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaUnitData::GetUnitData& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << "IUnitData::getUnitData(listId = " << request.unit_id
|
||||
<< ", &data)";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaUnitData::SetUnitData& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << "IUnitData::setUnitData(listId = " << request.unit_id
|
||||
<< ", data = <IBStream* containing " << request.data.size()
|
||||
<< "bytes>)";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaUnitInfo::GetUnitCount& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
@@ -1002,6 +1026,17 @@ void Vst3Logger::log_response(
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(bool is_host_vst,
|
||||
const YaUnitData::GetUnitDataResponse& response) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
message << response.result.string();
|
||||
if (response.result == Steinberg::kResultOk) {
|
||||
message << ", <IBStream* containing " << response.data.size()
|
||||
<< " bytes>";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(bool is_host_vst,
|
||||
const YaUnitInfo::GetUnitInfoResponse& response) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
|
||||
@@ -114,6 +114,9 @@ class Vst3Logger {
|
||||
const YaProgramListData::GetProgramData&);
|
||||
bool log_request(bool is_host_vst,
|
||||
const YaProgramListData::SetProgramData&);
|
||||
bool log_request(bool is_host_vst, const YaUnitData::UnitDataSupported&);
|
||||
bool log_request(bool is_host_vst, const YaUnitData::GetUnitData&);
|
||||
bool log_request(bool is_host_vst, const YaUnitData::SetUnitData&);
|
||||
bool log_request(bool is_host_vst, const YaUnitInfo::GetUnitCount&);
|
||||
bool log_request(bool is_host_vst, const YaUnitInfo::GetUnitInfo&);
|
||||
bool log_request(bool is_host_vst, const YaUnitInfo::GetProgramListCount&);
|
||||
@@ -181,6 +184,7 @@ class Vst3Logger {
|
||||
void log_response(bool is_host_vst, const Configuration&);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaProgramListData::GetProgramDataResponse&);
|
||||
void log_response(bool is_host_vst, const YaUnitData::GetUnitDataResponse&);
|
||||
void log_response(bool is_host_vst, const YaUnitInfo::GetUnitInfoResponse&);
|
||||
void log_response(bool is_host_vst,
|
||||
const YaUnitInfo::GetProgramListInfoResponse&);
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "plugin/edit-controller.h"
|
||||
#include "plugin/plugin-base.h"
|
||||
#include "plugin/program-list-data.h"
|
||||
#include "plugin/unit-data.h"
|
||||
#include "plugin/unit-info.h"
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
|
||||
Reference in New Issue
Block a user