summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 18:16:34 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 18:16:34 +0000
commit372ad8bcac948087bbc261933e38868f533c6708 (patch)
tree570e4c66aa14b11c6a1101041a987b3c22fa2783 /slv2
parent2a16021425dab995e902d133b060ebcf6c59a00c (diff)
downloadlilv-372ad8bcac948087bbc261933e38868f533c6708.tar.gz
lilv-372ad8bcac948087bbc261933e38868f533c6708.tar.bz2
lilv-372ad8bcac948087bbc261933e38868f533c6708.zip
Tidy (rearrange prototypes in sane order).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3212 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r--slv2/slv2.h67
1 files changed, 32 insertions, 35 deletions
diff --git a/slv2/slv2.h b/slv2/slv2.h
index 96f4662..9fbbae7 100644
--- a/slv2/slv2.h
+++ b/slv2/slv2.h
@@ -357,7 +357,18 @@ SLV2_API
SLV2PluginClass
slv2_plugin_classes_get_at(SLV2PluginClasses collection, unsigned index);
-/* SLV2ScalePoints */
+/**
+ Get a plugin class from @a classes by URI.
+ Return value is shared (stored in @a classes) and must not be freed or
+ modified by the caller in any way.
+ @return NULL if no plugin class with @a uri is found in @a classes.
+*/
+SLV2_API
+SLV2PluginClass
+slv2_plugin_classes_get_by_uri(SLV2PluginClasses classes,
+ SLV2Value uri);
+
+/* ScalePoints */
SLV2_API
void
@@ -419,6 +430,17 @@ SLV2_API
SLV2UI
slv2_uis_get_at(SLV2UIs collection, unsigned index);
+/**
+ Get a UI from @a uis by URI.
+ Return value is shared (stored in @a uis) and must not be freed or
+ modified by the caller in any way.
+ @return NULL if no UI with @a uri is found in @a list.
+*/
+SLV2_API
+SLV2UI
+slv2_uis_get_by_uri(SLV2UIs uis,
+ SLV2Value uri);
+
/* Values */
SLV2_API
@@ -454,6 +476,13 @@ SLV2_API
SLV2Value
slv2_values_get_at(SLV2Values collection, unsigned index);
+/**
+ Return whether @a values contains @a value.
+*/
+SLV2_API
+bool
+slv2_values_contains(SLV2Values values, SLV2Value value);
+
/* Plugins */
SLV2_API
@@ -481,9 +510,6 @@ SLV2_API
SLV2Plugin
slv2_plugins_get_at(SLV2Plugins collection, unsigned index);
-/**
- This function is deprecated, it does nothing.
-*/
SLV2_API
void
slv2_plugins_free(SLV2World world, SLV2Plugins plugins);
@@ -500,24 +526,6 @@ slv2_plugins_get_by_uri(SLV2Plugins plugins,
SLV2Value uri);
/**
- Get a plugin class from @a classes by URI.
- Return value is shared (stored in @a classes) and must not be freed or
- modified by the caller in any way.
- @return NULL if no plugin class with @a uri is found in @a classes.
-*/
-SLV2_API
-SLV2PluginClass
-slv2_plugin_classes_get_by_uri(SLV2PluginClasses classes,
- SLV2Value uri);
-
-/**
- Return whether @a values contains @a value.
-*/
-SLV2_API
-bool
-slv2_values_contains(SLV2Values values, SLV2Value value);
-
-/**
@}
@name World
The "world" represents all SLV2 state, and is used to discover/load/cache
@@ -798,11 +806,11 @@ slv2_plugin_has_feature(SLV2Plugin p,
/**
Get the LV2 Features supported (required or optionally) by a plugin.
A feature is "supported" by a plugin if it is required OR optional.
- *
+
Since required features have special rules the host must obey, this function
probably shouldn't be used by normal hosts. Using slv2_plugin_get_optional_features
and slv2_plugin_get_required_features separately is best in most cases.
- *
+
Returned value must be freed by caller with slv2_values_free.
*/
SLV2_API
@@ -1309,17 +1317,6 @@ SLV2UIs
slv2_plugin_get_uis(SLV2Plugin plugin);
/**
- Get a UI from @a uis by URI.
- Return value is shared (stored in @a uis) and must not be freed or
- modified by the caller in any way.
- @return NULL if no UI with @a uri is found in @a list.
-*/
-SLV2_API
-SLV2UI
-slv2_uis_get_by_uri(SLV2UIs uis,
- SLV2Value uri);
-
-/**
Get the URI of a Plugin UI.
@param ui The Plugin UI
@return a shared value which must not be modified or freed.