summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-24 01:05:07 +0000
committerDavid Robillard <d@drobilla.net>2007-09-24 01:05:07 +0000
commit3af94d8f422593fc16951b7365a5c6e62708e4c0 (patch)
tree393b42798c9ad4ce3fdd7dcd844e238ddb06322a /src/plugin.c
parent123ba8acf4817ae246130081f76fc7f4398e412d (diff)
downloadlilv-3af94d8f422593fc16951b7365a5c6e62708e4c0.tar.gz
lilv-3af94d8f422593fc16951b7365a5c6e62708e4c0.tar.bz2
lilv-3af94d8f422593fc16951b7365a5c6e62708e4c0.zip
LV2 UI interface cleanups.
Documentation reorganization. Updated LV2 spec (1.0beta5). git-svn-id: http://svn.drobilla.net/lad/slv2@775 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 758b256..055d727 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -566,7 +566,7 @@ slv2_plugin_get_port_by_symbol(SLV2Plugin p,
}
-SLV2PluginUIs
+SLV2UIs
slv2_plugin_get_uis(SLV2Plugin plugin)
{
const char* const query_str =
@@ -579,14 +579,14 @@ slv2_plugin_get_uis(SLV2Plugin plugin)
librdf_query_results* results = slv2_plugin_query(plugin, query_str);
- SLV2PluginUIs result = slv2_plugin_uis_new();
+ SLV2UIs result = slv2_uis_new();
while (!librdf_query_results_finished(results)) {
librdf_node* uri_node = librdf_query_results_get_binding_value(results, 0);
librdf_node* type_node = librdf_query_results_get_binding_value(results, 1);
librdf_node* binary_node = librdf_query_results_get_binding_value(results, 2);
- SLV2PluginUI ui = slv2_plugin_ui_new(plugin->world,
+ SLV2UI ui = slv2_ui_new(plugin->world,
librdf_node_get_uri(uri_node),
librdf_node_get_uri(type_node),
librdf_node_get_uri(binary_node));
@@ -602,10 +602,10 @@ slv2_plugin_get_uis(SLV2Plugin plugin)
librdf_free_query_results(results);
- if (slv2_plugin_uis_size(result) > 0) {
+ if (slv2_uis_size(result) > 0) {
return result;
} else {
- slv2_plugin_uis_free(result);
+ slv2_uis_free(result);
return NULL;
}
}
@@ -641,15 +641,6 @@ slv2_plugin_get_ui_library_uri(SLV2Plugin plugin,
}
#endif
-const char*
-slv2_ui_type_get_uri(SLV2UIType type)
-{
- if (type == SLV2_UI_TYPE_GTK2)
- return "http://ll-plugins.nongnu.org/ext/gui/dev/1#GtkUI";
- else
- return NULL;
-}
-
void*
slv2_plugin_load_ui(SLV2Plugin plugin,