From 996f9015fe055ca63823110175593317ac20c80f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Sep 2007 19:43:11 +0000 Subject: LV2 UI extension updates. LV2 GUI support in ingen. git-svn-id: http://svn.drobilla.net/lad/slv2@763 a436a847-0d15-0410-975c-d299462d15a1 --- src/value.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/value.c') diff --git a/src/value.c b/src/value.c index 9a3254d..c18074f 100644 --- a/src/value.c +++ b/src/value.c @@ -90,7 +90,7 @@ slv2_value_get_turtle_token(SLV2Value value) char* result = NULL; switch (value->type) { - case SLV2_VALUE_GUI: + case SLV2_VALUE_UI: case SLV2_VALUE_URI: len = strlen(value->str_val) + 3; result = calloc(len, sizeof(char)); @@ -119,14 +119,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_GUI); + return (value->type == SLV2_VALUE_URI || value->type == SLV2_VALUE_UI); } const char* slv2_value_as_uri(SLV2Value value) { - assert(slv2_value_is_uri(value) || slv2_value_is_gui(value)); + assert(slv2_value_is_uri(value) || slv2_value_is_ui(value)); return value->str_val; } @@ -187,16 +187,16 @@ slv2_value_as_float(SLV2Value value) bool -slv2_value_is_gui(SLV2Value value) +slv2_value_is_ui(SLV2Value value) { - return (value->type == SLV2_VALUE_GUI); + return (value->type == SLV2_VALUE_UI); } -SLV2GUIType -slv2_value_as_gui_type(SLV2Value value) +SLV2UIType +slv2_value_as_ui_type(SLV2Value value) { - assert(slv2_value_is_gui(value)); - return value->val.gui_type_val; + assert(slv2_value_is_ui(value)); + return value->val.ui_type_val; } -- cgit v1.2.1