diff options
author | David Robillard <d@drobilla.net> | 2011-03-08 19:53:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-08 19:53:13 +0000 |
commit | 97304fcdaa125bf1bfec30fa0d92b619faa41ea2 (patch) | |
tree | 49df5d2c22e2a03bbe730029778c70c6c215ff55 /src | |
parent | a9bbabe7ff2d9ca96ab047ccb86c2698cfb2d7b3 (diff) | |
download | lilv-97304fcdaa125bf1bfec30fa0d92b619faa41ea2.tar.gz lilv-97304fcdaa125bf1bfec30fa0d92b619faa41ea2.tar.bz2 lilv-97304fcdaa125bf1bfec30fa0d92b619faa41ea2.zip |
Fix UI host API.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3055 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/pluginuiinstance.c | 12 | ||||
-rw-r--r-- | src/slv2_internal.h | 1 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/pluginuiinstance.c b/src/pluginuiinstance.c index e805961..2c7b60f 100644 --- a/src/pluginuiinstance.c +++ b/src/pluginuiinstance.c @@ -45,11 +45,10 @@ slv2_ui_instantiate(SLV2Plugin plugin, LV2UI_Controller controller, const LV2_Feature* const* features) { - SLV2UIHost ui_host = slv2_ui_host_new( - controller, write_function, NULL, NULL, NULL); + SLV2UIHost ui_host = slv2_ui_host_new(write_function, NULL, NULL, NULL); SLV2UIInstance ret = slv2_ui_instance_new( - plugin, ui, NULL, ui_host, features); + plugin, ui, NULL, ui_host, controller, features); slv2_ui_host_free(ui_host); return ret; @@ -57,14 +56,12 @@ slv2_ui_instantiate(SLV2Plugin plugin, SLV2_API SLV2UIHost -slv2_ui_host_new(LV2UI_Controller controller, - LV2UI_Write_Function write_function, +slv2_ui_host_new(LV2UI_Write_Function write_function, SLV2PortIndexFunction port_index_function, SLV2PortSubscribeFunction port_subscribe_function, SLV2PortUnsubscribeFunction port_unsubscribe_function) { SLV2UIHost ret = malloc(sizeof(struct _SLV2UIHost)); - ret->controller = controller; ret->write_function = write_function; ret->port_index_function = port_index_function; ret->port_subscribe_function = port_subscribe_function; @@ -85,6 +82,7 @@ slv2_ui_instance_new(SLV2Plugin plugin, SLV2UI ui, SLV2Value widget_type_uri, SLV2UIHost ui_host, + LV2UI_Controller controller, const LV2_Feature* const* features) { #ifdef HAVE_SUIL @@ -109,7 +107,7 @@ slv2_ui_instance_new(SLV2Plugin plugin, slv2_value_as_uri(ui_type), slv2_value_as_uri(widget_type_uri), ui_host->write_function, - ui_host->controller, + controller, features); if (!suil_instance) { diff --git a/src/slv2_internal.h b/src/slv2_internal.h index 97f141f..a3b4f1e 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -159,7 +159,6 @@ struct _SLV2UIInstance { }; struct _SLV2UIHost { - LV2UI_Controller controller; LV2UI_Write_Function write_function; SLV2PortIndexFunction port_index_function; SLV2PortSubscribeFunction port_subscribe_function; |