[LV2] [PATCH] Make ui:resize a lv2:ExtensionData, too.

Hanspeter Portner ventosus at airpost.net
Sun Dec 20 07:35:26 PST 2015


ui:resize can be used bidirectionally:
* plugin can use ui:resize as host feature to request the parent window
to resize
* host can use ui:resize extension data to request the plugin window to
resize

There are plugins that define:
* lv2:extensionData ui:idleInterface, ui:resize .

According to the documentation this makes only sense, but this does not
pass sord_validation, as ui:resize is ONLY defined as a lv2:Feature.

Plugins should be able to request/signal either support to the host:
* lv2:requiredFeature ui:idleInterface, ui:show ;
* lv2:extensionData ui:idleInterface, ui:show ;
---
 lv2/lv2plug.in/ns/extensions/ui/ui.ttl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lv2/lv2plug.in/ns/extensions/ui/ui.ttl
b/lv2/lv2plug.in/ns/extensions/ui/ui.ttl
index 843681b..a9f9453 100644
--- a/lv2/lv2plug.in/ns/extensions/ui/ui.ttl
+++ b/lv2/lv2plug.in/ns/extensions/ui/ui.ttl
@@ -266,7 +266,8 @@ certain small number of events are actually of
interest to the UI.</p>
 """ .

 ui:resize
-       a lv2:Feature ;
+       a lv2:Feature ,
+               lv2:ExtensionData ;
        lv2:documentation """
 <p>A feature that allows the UI to notify the host about its current
size, or
 request a size change.  This feature corresponds to the LV2UI_Resize
struct,
-- 
2.6.4



More information about the Devel mailing list