From a26ddbb45e14b4519079a333d73ec22746b0c0d4 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 28 Feb 2022 17:29:53 +0100 Subject: [PATCH] Change CLAP_KEYWORDS to CLAP_FEATURES This name was changed in CLAP 0.19, but in 0.18 it's still called features. --- plugins/diopser/src/lib.rs | 2 +- plugins/examples/gain-gui/src/lib.rs | 2 +- plugins/examples/gain/src/lib.rs | 2 +- plugins/examples/sine/src/lib.rs | 2 +- src/plugin.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/diopser/src/lib.rs b/plugins/diopser/src/lib.rs index e9b5793e..d40336cd 100644 --- a/plugins/diopser/src/lib.rs +++ b/plugins/diopser/src/lib.rs @@ -413,7 +413,7 @@ fn unnormalize_automation_precision(normalized: f32) -> u32 { impl ClapPlugin for Diopser { const CLAP_ID: &'static str = "nl.robbertvanderhelm.diopser"; const CLAP_DESCRIPTION: &'static str = "A totally original phase rotation plugin"; - const CLAP_KEYWORDS: &'static [&'static str] = + const CLAP_FEATURES: &'static [&'static str] = &["audio_effect", "mono", "stereo", "filter", "utility"]; const CLAP_MANUAL_URL: &'static str = Self::URL; const CLAP_SUPPORT_URL: &'static str = Self::URL; diff --git a/plugins/examples/gain-gui/src/lib.rs b/plugins/examples/gain-gui/src/lib.rs index 171e59ab..e5bb1825 100644 --- a/plugins/examples/gain-gui/src/lib.rs +++ b/plugins/examples/gain-gui/src/lib.rs @@ -205,7 +205,7 @@ impl Plugin for Gain { impl ClapPlugin for Gain { const CLAP_ID: &'static str = "com.moist-plugins-gmbh.gain"; const CLAP_DESCRIPTION: &'static str = "A smoothed gain parameter example plugin"; - const CLAP_KEYWORDS: &'static [&'static str] = &["audio_effect", "mono", "stereo", "tool"]; + const CLAP_FEATURES: &'static [&'static str] = &["audio_effect", "mono", "stereo", "tool"]; const CLAP_MANUAL_URL: &'static str = Self::URL; const CLAP_SUPPORT_URL: &'static str = Self::URL; } diff --git a/plugins/examples/gain/src/lib.rs b/plugins/examples/gain/src/lib.rs index 472c54d3..506e20e7 100644 --- a/plugins/examples/gain/src/lib.rs +++ b/plugins/examples/gain/src/lib.rs @@ -132,7 +132,7 @@ impl Plugin for Gain { impl ClapPlugin for Gain { const CLAP_ID: &'static str = "com.moist-plugins-gmbh.gain"; const CLAP_DESCRIPTION: &'static str = "A smoothed gain parameter example plugin"; - const CLAP_KEYWORDS: &'static [&'static str] = &["audio_effect", "mono", "stereo", "tool"]; + const CLAP_FEATURES: &'static [&'static str] = &["audio_effect", "mono", "stereo", "tool"]; const CLAP_MANUAL_URL: &'static str = Self::URL; const CLAP_SUPPORT_URL: &'static str = Self::URL; } diff --git a/plugins/examples/sine/src/lib.rs b/plugins/examples/sine/src/lib.rs index da060673..0861e3e1 100644 --- a/plugins/examples/sine/src/lib.rs +++ b/plugins/examples/sine/src/lib.rs @@ -179,7 +179,7 @@ impl Plugin for Sine { impl ClapPlugin for Sine { const CLAP_ID: &'static str = "com.moist-plugins-gmbh.sine"; const CLAP_DESCRIPTION: &'static str = "An optionally MIDI controlled sine test tone"; - const CLAP_KEYWORDS: &'static [&'static str] = &["instrument", "mono", "stereo", "utility"]; + const CLAP_FEATURES: &'static [&'static str] = &["instrument", "mono", "stereo", "utility"]; const CLAP_MANUAL_URL: &'static str = Self::URL; const CLAP_SUPPORT_URL: &'static str = Self::URL; } diff --git a/src/plugin.rs b/src/plugin.rs index d9fa5f76..937ae1d6 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -113,7 +113,7 @@ pub trait ClapPlugin: Plugin { // // TODO: CLAP mentions that `win32-dpi-aware` is a special keyword that informs the host that // the plugin is DPI aware, can and should we have special handling for this? - const CLAP_KEYWORDS: &'static [&'static str]; + const CLAP_FEATURES: &'static [&'static str]; /// A URL to the plugin's manual, CLAP does not specify what to do when there is none. // // TODO: CLAP does not specify this, can these manual fields be null pointers?