mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +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,
|
bool Vst3Logger::log_request(bool is_host_vst,
|
||||||
const YaUnitInfo::GetUnitCount& request) {
|
const YaUnitInfo::GetUnitCount& request) {
|
||||||
return log_request_base(is_host_vst, [&](auto& message) {
|
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,
|
void Vst3Logger::log_response(bool is_host_vst,
|
||||||
const YaUnitInfo::GetUnitInfoResponse& response) {
|
const YaUnitInfo::GetUnitInfoResponse& response) {
|
||||||
log_response_base(is_host_vst, [&](auto& message) {
|
log_response_base(is_host_vst, [&](auto& message) {
|
||||||
|
|||||||
@@ -114,6 +114,9 @@ class Vst3Logger {
|
|||||||
const YaProgramListData::GetProgramData&);
|
const YaProgramListData::GetProgramData&);
|
||||||
bool log_request(bool is_host_vst,
|
bool log_request(bool is_host_vst,
|
||||||
const YaProgramListData::SetProgramData&);
|
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::GetUnitCount&);
|
||||||
bool log_request(bool is_host_vst, const YaUnitInfo::GetUnitInfo&);
|
bool log_request(bool is_host_vst, const YaUnitInfo::GetUnitInfo&);
|
||||||
bool log_request(bool is_host_vst, const YaUnitInfo::GetProgramListCount&);
|
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 Configuration&);
|
||||||
void log_response(bool is_host_vst,
|
void log_response(bool is_host_vst,
|
||||||
const YaProgramListData::GetProgramDataResponse&);
|
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::GetUnitInfoResponse&);
|
||||||
void log_response(bool is_host_vst,
|
void log_response(bool is_host_vst,
|
||||||
const YaUnitInfo::GetProgramListInfoResponse&);
|
const YaUnitInfo::GetProgramListInfoResponse&);
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
#include "plugin/edit-controller.h"
|
#include "plugin/edit-controller.h"
|
||||||
#include "plugin/plugin-base.h"
|
#include "plugin/plugin-base.h"
|
||||||
#include "plugin/program-list-data.h"
|
#include "plugin/program-list-data.h"
|
||||||
|
#include "plugin/unit-data.h"
|
||||||
#include "plugin/unit-info.h"
|
#include "plugin/unit-info.h"
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
|
|||||||
Reference in New Issue
Block a user