From df8ee18c0139f889bf7c697713a2205364845464 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 25 Jan 2008 06:55:57 +0000 Subject: Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible. Make 'index' a fundemental property of ingen ports. git-svn-id: http://svn.drobilla.net/lad/ingen@1113 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PluginModel.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libs/client/PluginModel.cpp') diff --git a/src/libs/client/PluginModel.cpp b/src/libs/client/PluginModel.cpp index 83762566..df8d4bf7 100644 --- a/src/libs/client/PluginModel.cpp +++ b/src/libs/client/PluginModel.cpp @@ -102,7 +102,7 @@ PluginModel::ui(SharedPtr engine, SharedPtr node) co Glib::Mutex::Lock(_rdf_world->mutex()); - return PluginUI::create(engine, node, _slv2_plugin); + return PluginUI::create(engine, node, _slv2_world, _slv2_plugin); } @@ -120,8 +120,10 @@ string PluginModel::get_lv2_icon_path(SLV2Plugin plugin) { string result; - SLV2Values paths = slv2_plugin_get_value(plugin, SLV2_URI, - "http://ll-plugins.nongnu.org/lv2/namespace#svgIcon"); + SLV2Value svg_icon_pred = slv2_value_new_uri(_slv2_world, + "http://ll-plugins.nongnu.org/lv2/namespace#svgIcon"); + + SLV2Values paths = slv2_plugin_get_value(plugin, svg_icon_pred); if (slv2_values_size(paths) > 0) { SLV2Value value = slv2_values_get_at(paths, 0); @@ -130,6 +132,7 @@ PluginModel::get_lv2_icon_path(SLV2Plugin plugin) slv2_values_free(paths); } + slv2_value_free(svg_icon_pred); return result; } -- cgit v1.2.1