summaryrefslogtreecommitdiffstats
path: root/src/collections.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-11 01:07:33 +0000
committerDavid Robillard <d@drobilla.net>2011-02-11 01:07:33 +0000
commitad69b46ed592c3f8b680f29653702b03b0559963 (patch)
tree1c4e355074dddbc9c7795c0402b4c11669cc05f7 /src/collections.c
parent7cc22c3fd0ee9f931a43d6f54be2b3be1cb09050 (diff)
downloadlilv-ad69b46ed592c3f8b680f29653702b03b0559963.tar.gz
lilv-ad69b46ed592c3f8b680f29653702b03b0559963.tar.bz2
lilv-ad69b46ed592c3f8b680f29653702b03b0559963.zip
Use `static' and `SLV2_API' explicitly/consistently.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2915 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/collections.c b/src/collections.c
index 4ea14fd..7e778a6 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -33,7 +33,7 @@ prefix ## _new() \
return g_ptr_array_new_with_free_func((GDestroyNotify)free_func); \
} \
\
-\
+SLV2_API \
void \
prefix ## _free(CollType coll) \
{ \
@@ -41,14 +41,14 @@ prefix ## _free(CollType coll) \
g_ptr_array_unref((GPtrArray*)coll); \
} \
\
-\
+SLV2_API \
unsigned \
prefix ## _size(CollType coll) \
{ \
return (coll ? ((GPtrArray*)coll)->len : 0); \
} \
\
-\
+SLV2_API \
ElemType \
prefix ## _get_at(CollType coll, unsigned index) \
{ \
@@ -69,6 +69,7 @@ SLV2_COLLECTION_IMPL(SLV2UIs, SLV2UI,
/* **** PLUGIN CLASSES **** */
+SLV2_API
SLV2PluginClass
slv2_plugin_classes_get_by_uri(SLV2PluginClasses list, SLV2Value uri)
{
@@ -99,6 +100,7 @@ slv2_plugin_classes_get_by_uri(SLV2PluginClasses list, SLV2Value uri)
/* **** VALUES **** */
+SLV2_API
bool
slv2_values_contains(SLV2Values list, SLV2Value value)
{
@@ -109,15 +111,9 @@ slv2_values_contains(SLV2Values list, SLV2Value value)
return false;
}
-void
-slv2_values_set_at(SLV2Values list, unsigned index, void* value)
-{
- if (index <= INT_MAX)
- ((GPtrArray*)list)->pdata[index] = value;
-}
-
/* **** PLUGIN UIS **** */
+SLV2_API
SLV2UI
slv2_uis_get_by_uri(SLV2UIs list, SLV2Value uri)
{