From d596bb4bedbf9ff267cfe924bb4d376213efd3ec Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Oct 2007 18:35:52 +0000 Subject: Updated LV2 spec. git-svn-id: http://svn.drobilla.net/lad/slv2@809 a436a847-0d15-0410-975c-d299462d15a1 --- src/pluginuiinstance.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/pluginuiinstance.c') diff --git a/src/pluginuiinstance.c b/src/pluginuiinstance.c index 31c2252..3fe98e6 100644 --- a/src/pluginuiinstance.c +++ b/src/pluginuiinstance.c @@ -40,14 +40,14 @@ slv2_ui_instantiate(SLV2Plugin plugin, LV2UI_Program_Change_Function program_function, LV2UI_Program_Save_Function save_function, LV2UI_Controller controller, - const LV2_Host_Feature* const* host_features) + const LV2_Feature* const* features) { struct _SLV2UIInstance* result = NULL; - bool local_host_features = (host_features == NULL); - if (local_host_features) { - host_features = malloc(sizeof(LV2_Host_Feature)); - ((LV2_Host_Feature**)host_features)[0] = NULL; + bool local_features = (features == NULL); + if (local_features) { + features = malloc(sizeof(LV2_Feature)); + ((LV2_Feature**)features)[0] = NULL; } const char* const lib_uri = slv2_ui_get_binary_uri(ui); @@ -103,7 +103,7 @@ slv2_ui_instantiate(SLV2Plugin plugin, save_function, controller, &impl->widget, - host_features); + features); impl->lib_handle = lib; result->pimpl = impl; break; @@ -128,8 +128,8 @@ slv2_ui_instantiate(SLV2Plugin plugin, return NULL; } - if (local_host_features) - free((LV2_Host_Feature**)host_features); + if (local_features) + free((LV2_Feature**)features); return result; } -- cgit v1.2.1