summaryrefslogtreecommitdiffstats
path: root/slv2/collections.h
diff options
context:
space:
mode:
Diffstat (limited to 'slv2/collections.h')
-rw-r--r--slv2/collections.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/slv2/collections.h b/slv2/collections.h
index f81a60d..d15ef5e 100644
--- a/slv2/collections.h
+++ b/slv2/collections.h
@@ -43,6 +43,7 @@ extern "C" {
*
* Time = O(1)
*/ \
+SLV2_API \
void \
prefix ## _free(CollType collection); \
\
@@ -51,6 +52,7 @@ prefix ## _free(CollType collection); \
*
* Time = O(1)
*/ \
+SLV2_API \
unsigned \
prefix ## _size(CollType collection); \
\
@@ -66,6 +68,7 @@ prefix ## _size(CollType collection); \
*
* \return NULL if \a index out of range.
*/ \
+SLV2_API \
ElemType \
prefix ## _get_at(CollType collection, \
unsigned index);
@@ -85,6 +88,7 @@ SLV2_COLLECTION(SLV2UIs, SLV2UI, slv2_uis)
* (plugins are owned by the world). \a plugins is invalid after this call.
* Time = O(1)
*/
+SLV2_API
void
slv2_plugins_free(SLV2World world,
SLV2Plugins plugins);
@@ -93,6 +97,7 @@ slv2_plugins_free(SLV2World world,
/** Get the number of plugins in the collection.
* Time = O(1)
*/
+SLV2_API
unsigned
slv2_plugins_size(SLV2Plugins plugins);
@@ -106,6 +111,7 @@ slv2_plugins_size(SLV2Plugins plugins);
*
* \return NULL if plugin with \a url not found in \a plugins.
*/
+SLV2_API
SLV2Plugin
slv2_plugins_get_by_uri(SLV2Plugins plugins,
SLV2Value uri);
@@ -122,6 +128,7 @@ slv2_plugins_get_by_uri(SLV2Plugins plugins,
*
* \return NULL if \a index out of range.
*/
+SLV2_API
SLV2Plugin
slv2_plugins_get_at(SLV2Plugins plugins,
unsigned index);
@@ -139,6 +146,7 @@ slv2_plugins_get_at(SLV2Plugins plugins,
*
* \return NULL if plugin with \a url not found in \a classes.
*/
+SLV2_API
SLV2PluginClass
slv2_plugin_classes_get_by_uri(SLV2PluginClasses classes,
SLV2Value uri);
@@ -149,6 +157,7 @@ slv2_plugin_classes_get_by_uri(SLV2PluginClasses classes,
/** Allocate a new, empty SLV2ScalePoints
*/
+SLV2_API
SLV2ScalePoints
slv2_scale_points_new();
@@ -158,6 +167,7 @@ slv2_scale_points_new();
/** Allocate a new, empty SLV2Values
*/
+SLV2_API
SLV2Values
slv2_values_new();
@@ -166,6 +176,7 @@ slv2_values_new();
*
* Time = O(n)
*/
+SLV2_API
bool
slv2_values_contains(SLV2Values values, SLV2Value value);
@@ -182,6 +193,7 @@ slv2_values_contains(SLV2Values values, SLV2Value value);
*
* \return NULL if plugin with \a url not found in \a list.
*/
+SLV2_API
SLV2UI
slv2_uis_get_by_uri(SLV2UIs list,
SLV2Value uri);