summaryrefslogtreecommitdiffstats
path: root/src/pluginuiinstance.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-03 18:35:52 +0000
committerDavid Robillard <d@drobilla.net>2007-10-03 18:35:52 +0000
commitd596bb4bedbf9ff267cfe924bb4d376213efd3ec (patch)
treeeff0daa07315d145dfac19b1e6c17416019c0de8 /src/pluginuiinstance.c
parent09bf0ca18301b9ef7a4360be35d2d1921a0d28d8 (diff)
downloadlilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.tar.gz
lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.tar.bz2
lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.zip
Updated LV2 spec.
git-svn-id: http://svn.drobilla.net/lad/slv2@809 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginuiinstance.c')
-rw-r--r--src/pluginuiinstance.c16
1 files changed, 8 insertions, 8 deletions
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;
}