summaryrefslogtreecommitdiffstats
path: root/src/pluginuis.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/pluginuis.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/pluginuis.c')
-rw-r--r--src/pluginuis.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/pluginuis.c b/src/pluginuis.c
index 6e0f77f..5d01bae 100644
--- a/src/pluginuis.c
+++ b/src/pluginuis.c
@@ -30,30 +30,30 @@
#include "slv2_internal.h"
-SLV2PluginUIs
-slv2_plugin_uis_new()
+SLV2UIs
+slv2_uis_new()
{
- return raptor_new_sequence((void (*)(void*))&slv2_plugin_ui_free, NULL);
+ return raptor_new_sequence((void (*)(void*))&slv2_ui_free, NULL);
//return raptor_new_sequence(NULL, NULL);
}
void
-slv2_plugin_uis_free(SLV2PluginUIs list)
+slv2_uis_free(SLV2UIs list)
{
raptor_free_sequence(list);
}
unsigned
-slv2_plugin_uis_size(SLV2PluginUIs list)
+slv2_uis_size(SLV2UIs list)
{
return raptor_sequence_size(list);
}
-SLV2PluginUI
-slv2_plugin_uis_get_by_uri(SLV2PluginUIs list, const char* uri)
+SLV2UI
+slv2_uis_get_by_uri(SLV2UIs list, const char* uri)
{
// good old fashioned binary search
@@ -64,9 +64,9 @@ slv2_plugin_uis_get_by_uri(SLV2PluginUIs list, const char* uri)
while (upper >= lower) {
i = lower + ((upper - lower) / 2);
- SLV2PluginUI ui = raptor_sequence_get_at(list, i);
+ SLV2UI ui = raptor_sequence_get_at(list, i);
- int cmp = strcmp(slv2_plugin_ui_get_uri(ui), uri);
+ int cmp = strcmp(slv2_ui_get_uri(ui), uri);
if (cmp == 0)
return ui;
@@ -80,12 +80,12 @@ slv2_plugin_uis_get_by_uri(SLV2PluginUIs list, const char* uri)
}
-SLV2PluginUI
-slv2_plugin_uis_get_at(SLV2PluginUIs list, unsigned index)
+SLV2UI
+slv2_uis_get_at(SLV2UIs list, unsigned index)
{
if (index > INT_MAX)
return NULL;
else
- return (SLV2PluginUI)raptor_sequence_get_at(list, (int)index);
+ return (SLV2UI)raptor_sequence_get_at(list, (int)index);
}