summaryrefslogtreecommitdiffstats
path: root/src/value.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-23 18:51:21 +0000
committerDavid Robillard <d@drobilla.net>2007-09-23 18:51:21 +0000
commita06305e2c8068f0519f25ab3d0eddf7278d6ba7c (patch)
tree57c89dffe104e5bf0fa561c35a550f564279321c /src/value.c
parentd26a3e39c72c17acbe5bb371a6638acd2469bdac (diff)
downloadlilv-a06305e2c8068f0519f25ab3d0eddf7278d6ba7c.tar.gz
lilv-a06305e2c8068f0519f25ab3d0eddf7278d6ba7c.tar.bz2
lilv-a06305e2c8068f0519f25ab3d0eddf7278d6ba7c.zip
Support for plugin UIs in separate bundles.
Fix some memory leaks. Better/more future proof UI interface. git-svn-id: http://svn.drobilla.net/lad/slv2@772 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/value.c')
-rw-r--r--src/value.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/value.c b/src/value.c
index c18074f..33f0020 100644
--- a/src/value.c
+++ b/src/value.c
@@ -90,7 +90,6 @@ slv2_value_get_turtle_token(SLV2Value value)
char* result = NULL;
switch (value->type) {
- case SLV2_VALUE_UI:
case SLV2_VALUE_URI:
len = strlen(value->str_val) + 3;
result = calloc(len, sizeof(char));
@@ -119,14 +118,14 @@ slv2_value_get_turtle_token(SLV2Value value)
bool
slv2_value_is_uri(SLV2Value value)
{
- return (value->type == SLV2_VALUE_URI || value->type == SLV2_VALUE_UI);
+ return (value->type == SLV2_VALUE_URI);
}
const char*
slv2_value_as_uri(SLV2Value value)
{
- assert(slv2_value_is_uri(value) || slv2_value_is_ui(value));
+ assert(slv2_value_is_uri(value));
return value->str_val;
}
@@ -185,18 +184,3 @@ slv2_value_as_float(SLV2Value value)
return (float)value->val.int_val;
}
-
-bool
-slv2_value_is_ui(SLV2Value value)
-{
- return (value->type == SLV2_VALUE_UI);
-}
-
-
-SLV2UIType
-slv2_value_as_ui_type(SLV2Value value)
-{
- assert(slv2_value_is_ui(value));
- return value->val.ui_type_val;
-}
-