summaryrefslogtreecommitdiffstats
path: root/slv2/value.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-30 23:33:36 +0000
committerDavid Robillard <d@drobilla.net>2007-06-30 23:33:36 +0000
commitf291f0a52c45c9ae14d031c1fc16d772c65d94ce (patch)
treedbe9701473c6cfe6fd3df50a6d4dc103c0ab9f26 /slv2/value.h
parent435bc2fc2c0eb78addac1e688411ad8fad02517a (diff)
downloadlilv-f291f0a52c45c9ae14d031c1fc16d772c65d94ce.tar.gz
lilv-f291f0a52c45c9ae14d031c1fc16d772c65d94ce.tar.bz2
lilv-f291f0a52c45c9ae14d031c1fc16d772c65d94ce.zip
Reworked GUI access in a safer way, anticipating various GUI specs (w/o breaking binary compatibility).
Increment libtool library version number accordingly (new methods added, still backwards compatible). git-svn-id: http://svn.drobilla.net/lad/slv2@547 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/value.h')
-rw-r--r--slv2/value.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/slv2/value.h b/slv2/value.h
index 1470d36..4fd0cf4 100644
--- a/slv2/value.h
+++ b/slv2/value.h
@@ -74,7 +74,7 @@ slv2_value_is_uri(SLV2Value value);
/** Return this value as a URI string, e.g. "http://example.org/foo".
*
* Valid to call only if slv2_value_is_uri(\a value) or
- * slv2_value_is_qname(\a value) returns true.
+ * slv2_value_is_gui(\a value) returns true.
* Returned value is owned by \a value and must not be freed by caller.
*
* Time = O(1)
@@ -172,6 +172,29 @@ int
slv2_value_as_int(SLV2Value value);
+/** Return whether this value is a GUI (URI and type).
+ *
+ * If this returns true, slv2_value_as_uri will return the URI of the GUI,
+ * and slv2_value_as_gui_type will return the SLV2GUIType (which can be
+ * used to find the URI of the corresponding GUI spec itself, with
+ * slv2_gui_type_get_uri).
+ *
+ * Time = O(1)
+ */
+bool
+slv2_value_is_gui(SLV2Value value);
+
+
+/** Return \a value as an SLV2GUIType.
+ *
+ * Valid to call only if slv2_value_is_gui(\a value) returns true.
+ *
+ * Time = O(1)
+ */
+SLV2GUIType
+slv2_value_as_gui_type(SLV2Value value);
+
+
/** @} */
#ifdef __cplusplus