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>
void log_response(bool is_host_plugin,
const PrimitiveWrapper<T>& value,
const PrimitiveResponse<T>& value,
bool from_cache = false) {
log_response_base(is_host_plugin, [&](auto& message) {
if constexpr (std::is_same_v<T, bool>) {
+1 -1
View File
@@ -347,7 +347,7 @@ class Vst3Logger {
template <typename T>
void log_response(bool is_host_plugin,
const PrimitiveWrapper<T>& value,
const PrimitiveResponse<T>& value,
bool from_cache = false) {
// For logging all primitive return values other than `tresult`
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()`.
*/
struct StartProcessing {
using Response = PrimitiveWrapper<bool>;
using Response = PrimitiveResponse<bool>;
native_size_t instance_id;
+3 -3
View File
@@ -50,10 +50,10 @@ struct Ack {
* you define a serialization function.
*/
template <typename T>
class PrimitiveWrapper {
class PrimitiveResponse {
public:
PrimitiveWrapper() noexcept {}
PrimitiveWrapper(T value) noexcept : value_(value) {}
PrimitiveResponse() noexcept {}
PrimitiveResponse(T value) noexcept : value_(value) {}
operator T() const noexcept { return value_; }
@@ -166,7 +166,7 @@ class YaAudioProcessor : public Steinberg::Vst::IAudioProcessor {
* to the Wine plugin host.
*/
struct GetLatencySamples {
using Response = PrimitiveWrapper<uint32>;
using Response = PrimitiveResponse<uint32>;
native_size_t instance_id;
@@ -279,7 +279,7 @@ class YaAudioProcessor : public Steinberg::Vst::IAudioProcessor {
* to the Wine plugin host.
*/
struct GetTailSamples {
using Response = PrimitiveWrapper<uint32>;
using Response = PrimitiveResponse<uint32>;
native_size_t instance_id;
@@ -126,7 +126,7 @@ class YaComponent : public Steinberg::Vst::IComponent {
* the Wine plugin host.
*/
struct GetBusCount {
using Response = PrimitiveWrapper<int32>;
using Response = PrimitiveResponse<int32>;
native_size_t instance_id;
@@ -102,7 +102,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* to the Wine plugin host.
*/
struct GetParameterCount {
using Response = PrimitiveWrapper<int32>;
using Response = PrimitiveResponse<int32>;
native_size_t instance_id;
@@ -242,7 +242,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* Wine plugin host.
*/
struct NormalizedParamToPlain {
using Response = PrimitiveWrapper<Steinberg::Vst::ParamValue>;
using Response = PrimitiveResponse<Steinberg::Vst::ParamValue>;
native_size_t instance_id;
@@ -267,7 +267,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* plugin host.
*/
struct PlainParamToNormalized {
using Response = PrimitiveWrapper<Steinberg::Vst::ParamValue>;
using Response = PrimitiveResponse<Steinberg::Vst::ParamValue>;
native_size_t instance_id;
@@ -291,7 +291,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
* `IEditController::getParamNormalized(id)` to the Wine plugin host.
*/
struct GetParamNormalized {
using Response = PrimitiveWrapper<Steinberg::Vst::ParamValue>;
using Response = PrimitiveResponse<Steinberg::Vst::ParamValue>;
native_size_t instance_id;
@@ -69,7 +69,7 @@ class YaKeyswitchController : public Steinberg::Vst::IKeyswitchController {
* plugin host.
*/
struct GetKeyswitchCount {
using Response = PrimitiveWrapper<int32>;
using Response = PrimitiveResponse<int32>;
native_size_t instance_id;
@@ -73,7 +73,7 @@ class YaNoteExpressionController
* to the Wine plugin host.
*/
struct GetNoteExpressionCount {
using Response = PrimitiveWrapper<int32>;
using Response = PrimitiveResponse<int32>;
native_size_t instance_id;
@@ -72,7 +72,7 @@ class YaProcessContextRequirements
* Wine plugin host.
*/
struct GetProcessContextRequirements {
using Response = PrimitiveWrapper<uint32>;
using Response = PrimitiveResponse<uint32>;
native_size_t instance_id;
@@ -69,7 +69,7 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
* plugin host.
*/
struct GetUnitCount {
using Response = PrimitiveWrapper<int32>;
using Response = PrimitiveResponse<int32>;
native_size_t instance_id;
@@ -123,7 +123,7 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
* the Wine plugin host.
*/
struct GetProgramListCount {
using Response = PrimitiveWrapper<int32>;
using Response = PrimitiveResponse<int32>;
native_size_t instance_id;
@@ -332,7 +332,7 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
* Wine plugin host.
*/
struct GetSelectedUnit {
using Response = PrimitiveWrapper<Steinberg::Vst::UnitID>;
using Response = PrimitiveResponse<Steinberg::Vst::UnitID>;
native_size_t instance_id;