summaryrefslogtreecommitdiffstats
path: root/src/plugininstance.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/plugininstance.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/plugininstance.c')
-rw-r--r--src/plugininstance.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugininstance.c b/src/plugininstance.c
index a125e0d..f57de33 100644
--- a/src/plugininstance.c
+++ b/src/plugininstance.c
@@ -31,16 +31,16 @@
SLV2Instance
-slv2_plugin_instantiate(SLV2Plugin plugin,
- double sample_rate,
- const LV2_Host_Feature** host_features)
+slv2_plugin_instantiate(SLV2Plugin plugin,
+ double sample_rate,
+ const LV2_Feature** features)
{
struct _Instance* result = NULL;
- bool local_host_features = (host_features == NULL);
- if (local_host_features) {
- host_features = malloc(sizeof(LV2_Host_Feature));
- host_features[0] = NULL;
+ bool local_features = (features == NULL);
+ if (local_features) {
+ features = malloc(sizeof(LV2_Feature));
+ features[0] = NULL;
}
const char* const lib_uri = slv2_plugin_get_library_uri(plugin);
@@ -89,7 +89,7 @@ slv2_plugin_instantiate(SLV2Plugin plugin,
// Create SLV2Instance to return
result = malloc(sizeof(struct _Instance));
result->lv2_descriptor = ld;
- result->lv2_handle = ld->instantiate(ld, sample_rate, (char*)bundle_path, host_features);
+ result->lv2_handle = ld->instantiate(ld, sample_rate, (char*)bundle_path, features);
struct _InstanceImpl* impl = malloc(sizeof(struct _InstanceImpl));
impl->lib_handle = lib;
result->pimpl = impl;
@@ -114,8 +114,8 @@ slv2_plugin_instantiate(SLV2Plugin plugin,
result->lv2_descriptor->connect_port(result->lv2_handle, i, NULL);
}
- if (local_host_features)
- free(host_features);
+ if (local_features)
+ free(features);
return result;
}