diff options
author | David Robillard <d@drobilla.net> | 2020-02-16 22:32:47 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-17 16:55:35 +0100 |
commit | 45026100aa0f2a94637aad39e7d39213738ff57a (patch) | |
tree | 89bc7c8a8a8f668c5db80cf680484036a5665072 /gtk2_ardour/lv2_plugin_ui.h | |
parent | a7a781971e146a6a98c0c55543b849c6adcd41f0 (diff) |
LV2: Implement ui:requestValue feature
Diffstat (limited to 'gtk2_ardour/lv2_plugin_ui.h')
-rw-r--r-- | gtk2_ardour/lv2_plugin_ui.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.h b/gtk2_ardour/lv2_plugin_ui.h index 2b16f5080b..b22b8ec5c3 100644 --- a/gtk2_ardour/lv2_plugin_ui.h +++ b/gtk2_ardour/lv2_plugin_ui.h @@ -44,12 +44,6 @@ #include "lv2_external_ui.h" #include "lv2/lv2plug.in/ns/extensions/ui/ui.h" -#if 0 -typedef struct _LV2UI_Request_Parameter { - LV2UI_Feature_Handle handle; - uint32_t (*request)(LV2UI_Feature_Handle handle, LV2_URID key); -}LV2UI_Request_Parameter; -#endif namespace ARDOUR { class PluginInsert; @@ -92,8 +86,8 @@ private: struct lv2_external_ui_host _external_ui_host; LV2_Feature _external_ui_feature; LV2_Feature _external_kxui_feature; -#if 0 - LV2UI_Request_Parameter _lv2ui_request_paramater; +#ifdef HAVE_LV2_1_17_2 + LV2UI_Request_Value _lv2ui_request_value; LV2_Feature _lv2ui_request_feature; #endif struct lv2_external_ui* _external_ui_ptr; @@ -122,7 +116,14 @@ private: uint32_t port_index, bool grabbed); - static uint32_t request_parameter (void* handle, LV2_URID key); +#ifdef HAVE_LV2_1_17_2 + static LV2UI_Request_Value_Status + request_value(void* handle, + LV2_URID key, + LV2_URID type, + const LV2_Feature* const* features); +#endif + void set_path_property (int, const ARDOUR::ParameterDescriptor&, Gtk::FileChooserDialog*); |