Rename PrimitiveWrapper to PrimitiveResponse

This commit is contained in:
Robbert van der Helm
2022-09-12 17:31:02 +02:00
parent 22e0fee244
commit fc43a0f012
11 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class ClapLogger {
template <typename T> template <typename T>
void log_response(bool is_host_plugin, void log_response(bool is_host_plugin,
const PrimitiveWrapper<T>& value, const PrimitiveResponse<T>& value,
bool from_cache = false) { bool from_cache = false) {
log_response_base(is_host_plugin, [&](auto& message) { log_response_base(is_host_plugin, [&](auto& message) {
if constexpr (std::is_same_v<T, bool>) { if constexpr (std::is_same_v<T, bool>) {
+1 -1
View File
@@ -347,7 +347,7 @@ class Vst3Logger {
template <typename T> template <typename T>
void log_response(bool is_host_plugin, void log_response(bool is_host_plugin,
const PrimitiveWrapper<T>& value, const PrimitiveResponse<T>& value,
bool from_cache = false) { bool from_cache = false) {
// For logging all primitive return values other than `tresult` // For logging all primitive return values other than `tresult`
log_response_base(is_host_plugin, [&](auto& message) { log_response_base(is_host_plugin, [&](auto& message) {
+1 -1
View File
@@ -235,7 +235,7 @@ struct Deactivate {
* Message struct for `clap_plugin::start_processing()`. * Message struct for `clap_plugin::start_processing()`.
*/ */
struct StartProcessing { struct StartProcessing {
using Response = PrimitiveWrapper<bool>; using Response = PrimitiveResponse<bool>;
native_size_t instance_id; native_size_t instance_id;
+3 -3
View File
@@ -50,10 +50,10 @@ struct Ack {
* you define a serialization function. * you define a serialization function.
*/ */
template <typename T> template <typename T>
class PrimitiveWrapper { class PrimitiveResponse {
public: public:
PrimitiveWrapper() noexcept {} PrimitiveResponse() noexcept {}
PrimitiveWrapper(T value) noexcept : value_(value) {} PrimitiveResponse(T value) noexcept : value_(value) {}
operator T() const noexcept { return value_; } operator T() const noexcept { return value_; }
@@ -166,7 +166,7 @@ class YaAudioProcessor : public Steinberg::Vst::IAudioProcessor {
* to the Wine plugin host. * to the Wine plugin host.
*/ */
struct GetLatencySamples { struct GetLatencySamples {
using Response = PrimitiveWrapper<uint32>; using Response = PrimitiveResponse<uint32>;
native_size_t instance_id; native_size_t instance_id;
@@ -279,7 +279,7 @@ class YaAudioProcessor : public Steinberg::Vst::IAudioProcessor {
* to the Wine plugin host. * to the Wine plugin host.
*/ */
struct GetTailSamples { struct GetTailSamples {
using Response = PrimitiveWrapper<uint32>; using Response = PrimitiveResponse<uint32>;
native_size_t instance_id; native_size_t instance_id;
@@ -126,7 +126,7 @@ class YaComponent : public Steinberg::Vst::IComponent {
* the Wine plugin host. * the Wine plugin host.
*/ */
struct GetBusCount { struct GetBusCount {
using Response = PrimitiveWrapper<int32>; using Response = PrimitiveResponse<int32>;
native_size_t instance_id; native_size_t instance_id;
@@ -102,7 +102,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* to the Wine plugin host. * to the Wine plugin host.
*/ */
struct GetParameterCount { struct GetParameterCount {
using Response = PrimitiveWrapper<int32>; using Response = PrimitiveResponse<int32>;
native_size_t instance_id; native_size_t instance_id;
@@ -242,7 +242,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* Wine plugin host. * Wine plugin host.
*/ */
struct NormalizedParamToPlain { struct NormalizedParamToPlain {
using Response = PrimitiveWrapper<Steinberg::Vst::ParamValue>; using Response = PrimitiveResponse<Steinberg::Vst::ParamValue>;
native_size_t instance_id; native_size_t instance_id;
@@ -267,7 +267,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* plugin host. * plugin host.
*/ */
struct PlainParamToNormalized { struct PlainParamToNormalized {
using Response = PrimitiveWrapper<Steinberg::Vst::ParamValue>; using Response = PrimitiveResponse<Steinberg::Vst::ParamValue>;
native_size_t instance_id; native_size_t instance_id;
@@ -291,7 +291,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* `IEditController::getParamNormalized(id)` to the Wine plugin host. * `IEditController::getParamNormalized(id)` to the Wine plugin host.
*/ */
struct GetParamNormalized { struct GetParamNormalized {
using Response = PrimitiveWrapper<Steinberg::Vst::ParamValue>; using Response = PrimitiveResponse<Steinberg::Vst::ParamValue>;
native_size_t instance_id; native_size_t instance_id;
@@ -69,7 +69,7 @@ class YaKeyswitchController : public Steinberg::Vst::IKeyswitchController {
* plugin host. * plugin host.
*/ */
struct GetKeyswitchCount { struct GetKeyswitchCount {
using Response = PrimitiveWrapper<int32>; using Response = PrimitiveResponse<int32>;
native_size_t instance_id; native_size_t instance_id;
@@ -73,7 +73,7 @@ class YaNoteExpressionController
* to the Wine plugin host. * to the Wine plugin host.
*/ */
struct GetNoteExpressionCount { struct GetNoteExpressionCount {
using Response = PrimitiveWrapper<int32>; using Response = PrimitiveResponse<int32>;
native_size_t instance_id; native_size_t instance_id;
@@ -72,7 +72,7 @@ class YaProcessContextRequirements
* Wine plugin host. * Wine plugin host.
*/ */
struct GetProcessContextRequirements { struct GetProcessContextRequirements {
using Response = PrimitiveWrapper<uint32>; using Response = PrimitiveResponse<uint32>;
native_size_t instance_id; native_size_t instance_id;
@@ -69,7 +69,7 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
* plugin host. * plugin host.
*/ */
struct GetUnitCount { struct GetUnitCount {
using Response = PrimitiveWrapper<int32>; using Response = PrimitiveResponse<int32>;
native_size_t instance_id; native_size_t instance_id;
@@ -123,7 +123,7 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
* the Wine plugin host. * the Wine plugin host.
*/ */
struct GetProgramListCount { struct GetProgramListCount {
using Response = PrimitiveWrapper<int32>; using Response = PrimitiveResponse<int32>;
native_size_t instance_id; native_size_t instance_id;
@@ -332,7 +332,7 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
* Wine plugin host. * Wine plugin host.
*/ */
struct GetSelectedUnit { struct GetSelectedUnit {
using Response = PrimitiveWrapper<Steinberg::Vst::UnitID>; using Response = PrimitiveResponse<Steinberg::Vst::UnitID>;
native_size_t instance_id; native_size_t instance_id;