From e8532ba49f54d511c00fbd605645e3e1431fe138 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Apr 2012 04:10:52 +0000 Subject: Make subscribe and unsubscribe extension parameters features again (better safe than sorry). --- lv2/lv2plug.in/ns/extensions/ui/ui.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'lv2/lv2plug.in/ns/extensions/ui') diff --git a/lv2/lv2plug.in/ns/extensions/ui/ui.h b/lv2/lv2plug.in/ns/extensions/ui/ui.h index 6dcb8e4..a0ec2d3 100644 --- a/lv2/lv2plug.in/ns/extensions/ui/ui.h +++ b/lv2/lv2plug.in/ns/extensions/ui/ui.h @@ -301,12 +301,13 @@ typedef struct _LV2UI_Port_Subscribe { @param handle The handle field of this struct. @param port_index The index of the port. @param port_protocol The URID of the ui:PortProtocol. - @param data Extra data as defined by the port protocol, or NULL. + @param features Features for this subscription. + @return 0 on success. */ - void (*subscribe)(LV2UI_Feature_Handle handle, - uint32_t port_index, - uint32_t port_protocol, - const void* options); + uint32_t (*subscribe)(LV2UI_Feature_Handle handle, + uint32_t port_index, + uint32_t port_protocol, + const LV2_Feature* const* features); /** Unsubscribe from updates for a port. @@ -320,12 +321,13 @@ typedef struct _LV2UI_Port_Subscribe { @param handle The handle field of this struct. @param port_index The index of the port. @param port_protocol The URID of the ui:PortProtocol. - @param data Extra data as defined by the port protocol, or NULL. + @param features Features for this subscription. + @return 0 on success. */ - void (*unsubscribe)(LV2UI_Feature_Handle handle, - uint32_t port_index, - uint32_t port_protocol, - const void* options); + uint32_t (*unsubscribe)(LV2UI_Feature_Handle handle, + uint32_t port_index, + uint32_t port_protocol, + const LV2_Feature* const* features); } LV2UI_Port_Subscribe; /** -- cgit v1.2.1