summaryrefslogtreecommitdiffstats
path: root/slv2/slv2.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-12 19:53:08 +0000
committerDavid Robillard <d@drobilla.net>2011-02-12 19:53:08 +0000
commit053f1f082fe2603949050da99a76e6e799335c22 (patch)
treecf30776758aabc39b346f5f72b4286f6b9389d09 /slv2/slv2.h
parenta4b1d7318f7cfc752ac3a8858006c0d6c796553e (diff)
downloadlilv-053f1f082fe2603949050da99a76e6e799335c22.tar.gz
lilv-053f1f082fe2603949050da99a76e6e799335c22.tar.bz2
lilv-053f1f082fe2603949050da99a76e6e799335c22.zip
Wrap rest of API (with a few troublesome exceptions).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2942 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/slv2.h')
-rw-r--r--slv2/slv2.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/slv2/slv2.h b/slv2/slv2.h
index 45fe597..c761873 100644
--- a/slv2/slv2.h
+++ b/slv2/slv2.h
@@ -79,6 +79,14 @@ typedef void* SLV2Values; /**< array<Value>. */
* @{
*/
+/** Convert a file URI string to a local path string.
+ * For example, "file://foo/bar/baz.ttl" returns "/foo/bar/baz.ttl".
+ * Return value is shared and must not be deleted by caller.
+ * @return @a uri converted to a path, or NULL on failure (URI is not local).
+ */
+SLV2_API
+const char* slv2_uri_to_path(const char* uri);
+
/** Create a new URI value.
* Returned value must be freed by caller with slv2_value_free.
*/
@@ -235,14 +243,6 @@ SLV2_API
bool
slv2_value_as_bool(SLV2Value value);
-/** Convert a file URI to a local path.
- * For example, "file://foo/bar/baz.ttl" returns "/foo/bar/baz.ttl".
- * Return value is shared and must not be deleted by caller.
- * @return @a uri converted to a path, or NULL on failure (URI is not local).
- */
-SLV2_API
-const char* slv2_uri_to_path(const char* uri);
-
/** @} */
/** @name Collections
* SLV2 has several collection types for holding various types of value:
@@ -471,6 +471,13 @@ SLV2Plugins
slv2_world_get_plugins_by_filter(SLV2World world,
bool (*include)(SLV2Plugin));
+/** Return the plugin with the given @a uri, or NULL if not found.
+ */
+SLV2_API
+SLV2Plugin
+slv2_world_get_plugin_by_uri_string(SLV2World world,
+ const char* uri);
+
/** @} */
/** @name Plugin
* @{
@@ -764,7 +771,7 @@ SLV2_API
SLV2Values
slv2_port_get_value_by_qname(SLV2Plugin plugin,
SLV2Port port,
- const char* property_uri);
+ const char* predicate);
/** Return the LV2 port properties of a port.
*/