summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-22 06:26:38 +0000
committerDavid Robillard <d@drobilla.net>2011-04-22 06:26:38 +0000
commitbeccc26909e9976d33f3be2951b6ef8cd63353ff (patch)
tree16a48029560ae8f78580827c75ce53f7596ebc6d /src/plugin.c
parent12defde9074ff2b6f4588960151f3ce41441c266 (diff)
downloadlilv-beccc26909e9976d33f3be2951b6ef8cd63353ff.tar.gz
lilv-beccc26909e9976d33f3be2951b6ef8cd63353ff.tar.bz2
lilv-beccc26909e9976d33f3be2951b6ef8cd63353ff.zip
Remove UI instance API from SLV2 (apps should implement UIs via Suil now).
Remove UI extension API and header from public APIs entirely. Rework UI instance API to support multiple UIs and a more precise notion of embedding support. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3186 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/plugin.c b/src/plugin.c
index ea48507..ceac7c8 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -826,65 +826,3 @@ slv2_plugin_get_uis(SLV2Plugin p)
return NULL;
}
}
-
-SLV2_API
-SLV2UI
-slv2_plugin_get_default_ui(SLV2Plugin p,
- SLV2Value widget_type_uri)
-{
-#ifdef HAVE_SUIL
- SLV2Node ui_ui_node = sord_new_uri(p->world->world, NS_UI "ui");
- SLV2Node ui_binary_node = sord_new_uri(p->world->world, NS_UI "binary");
-
- SLV2Matches uis = slv2_plugin_find_statements(
- p,
- p->plugin_uri->val.uri_val,
- ui_ui_node,
- NULL);
-
- SLV2UI native = NULL;
- SLV2UI foreign = NULL;
- FOREACH_MATCH(uis) {
- SLV2Node ui = slv2_match_object(uis);
- SLV2Value type = slv2_plugin_get_unique(p, ui, p->world->rdf_a_node);
- SLV2Value binary = slv2_plugin_get_unique(p, ui, ui_binary_node);
-
- if (sord_node_get_type(ui) != SORD_URI
- || !slv2_value_is_uri(type)
- || !slv2_value_is_uri(binary)) {
- slv2_value_free(binary);
- slv2_value_free(type);
- SLV2_ERROR("Corrupt UI\n");
- continue;
- }
-
- if (!native && slv2_value_equals(type, widget_type_uri)) {
- native = slv2_ui_new(
- p->world,
- slv2_value_new_from_node(p->world, ui),
- type,
- binary);
- break;
- } else if (!foreign && suil_ui_type_supported(
- slv2_value_as_uri(widget_type_uri),
- slv2_value_as_uri(type))) {
- foreign = slv2_ui_new(
- p->world,
- slv2_value_new_from_node(p->world, ui),
- type,
- binary);
- } else {
- slv2_value_free(binary);
- slv2_value_free(type);
- }
- }
- slv2_match_end(uis);
-
- slv2_node_free(p->world, ui_binary_node);
- slv2_node_free(p->world, ui_ui_node);
-
- return (native) ? native : foreign;
-#else
- return NULL;
-#endif
-}