diff options
author | Lars Luthman <lars.luthman@gmail.com> | 2011-03-26 20:57:28 +0000 |
---|---|---|
committer | Lars Luthman <lars.luthman@gmail.com> | 2011-03-26 20:57:28 +0000 |
commit | b715f87e7056ec7a625e001e192c7fbce5b6ea32 (patch) | |
tree | 7234361333703c81557604f6c1d61b1d8b3e9559 | |
parent | 6d3329521cd118ae709bce348241f446f1337ea9 (diff) | |
download | lv2-b715f87e7056ec7a625e001e192c7fbce5b6ea32.tar.xz |
Removed the specialness of ui:floatControl
-rw-r--r-- | ext/ui.lv2/ui.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/ui.lv2/ui.h b/ext/ui.lv2/ui.h index 503e401..5274cd5 100644 --- a/ext/ui.lv2/ui.h +++ b/ext/ui.lv2/ui.h @@ -50,7 +50,7 @@ /** The numerical ID returned by LV2_UI_Host_Descriptor::port_protocol_id() for invalid or unsupported PortProtocols. */ -#define LV2_UI_INVALID_PORT_PROTOCOL_ID ((uint32_t)-1) +#define LV2_UI_INVALID_PORT_PROTOCOL_ID 0 /** The full URI for the ui:floatControl PortProtocol. */ #define LV2_UI_FLOAT_CONTROL_URI "http://lv2plug.in/ns/ext/ui#floatControl" @@ -146,12 +146,11 @@ typedef struct _LV2_UI_Host_Descriptor { This function is used by the UI, typically at instantiation, to get the numeric IDs that are mapped to certain ui:PortProtocols (see ui.ttl for details). If the host does not support the given - ui:PortProtocol it MUST return LV2_UI_INVALID_PORT_PROTOCOL_ID. + ui:PortProtocol it MUST return LV2_UI_INVALID_PORT_PROTOCOL_ID, + but the UI SHOULD not rely on this to find out which protocols + are supported, it should check the @a features array passed to + instantiate() for this. - As a special case, when @a port_protocol_uri is LV2_UI_FLOAT_CONTROL_URI - and ui:floatControl is listed as a required Feature for the UI, this - function MUST return 0. The UI may assume this and skip the call. - @param host_handle The @a host_handle that was passed to the UI's instantiate() function. @param port_protocol_uri The URI of the ui:PortProtocol. |