summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/collections.c6
-rw-r--r--src/lilv_internal.h15
-rw-r--r--src/world.c7
3 files changed, 8 insertions, 20 deletions
diff --git a/src/collections.c b/src/collections.c
index 2ea812b..a7b6923 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -47,7 +47,7 @@ lilv_collection_new(ZixTreeCompareFunc cmp, LilvFreeFunc free_func)
return zix_tree_new(NULL, false, cmp, NULL, destroy, (const void*)free_func);
}
-void
+static void
lilv_collection_free(LilvCollection* collection)
{
if (collection) {
@@ -55,13 +55,13 @@ lilv_collection_free(LilvCollection* collection)
}
}
-unsigned
+static unsigned
lilv_collection_size(const LilvCollection* collection)
{
return (collection ? zix_tree_size((const ZixTree*)collection) : 0);
}
-LilvIter*
+static LilvIter*
lilv_collection_begin(const LilvCollection* collection)
{
return collection ? (LilvIter*)zix_tree_begin((ZixTree*)collection) : NULL;
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index 0a1f7d4..f1bca25 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -254,15 +254,6 @@ lilv_plugin_get_unique(const LilvPlugin* plugin,
const SordNode* subject,
const SordNode* predicate);
-void
-lilv_collection_free(LilvCollection* collection);
-
-unsigned
-lilv_collection_size(const LilvCollection* collection);
-
-LilvIter*
-lilv_collection_begin(const LilvCollection* collection);
-
void*
lilv_collection_get(const LilvCollection* collection, const LilvIter* i);
@@ -311,9 +302,6 @@ lilv_world_blank_node_prefix(LilvWorld* world);
SerdStatus
lilv_world_load_file(LilvWorld* world, SerdReader* reader, const LilvNode* uri);
-SerdStatus
-lilv_world_load_graph(LilvWorld* world, SordNode* graph, const LilvNode* uri);
-
LilvUI*
lilv_ui_new(LilvWorld* world,
LilvNode* uri,
@@ -333,9 +321,6 @@ int
lilv_header_compare_by_uri(const void* a, const void* b, const void* user_data);
int
-lilv_lib_compare(const void* a, const void* b, const void* user_data);
-
-int
lilv_ptr_cmp(const void* a, const void* b, const void* user_data);
int
diff --git a/src/world.c b/src/world.c
index 695cc29..37fb121 100644
--- a/src/world.c
+++ b/src/world.c
@@ -27,6 +27,9 @@
static int
lilv_world_drop_graph(LilvWorld* world, const SordNode* graph);
+static int
+lilv_lib_compare(const void* a, const void* b, const void* user_data);
+
static void
destroy_node(void* const ptr, const void* const user_data)
{
@@ -367,7 +370,7 @@ lilv_header_compare_by_uri(const void* a, const void* b, const void* user_data)
handle the case where the same library is loaded with different bundles, and
consequently different contents (mainly plugins).
*/
-int
+static int
lilv_lib_compare(const void* a, const void* b, const void* user_data)
{
(void)user_data;
@@ -499,7 +502,7 @@ lilv_world_add_plugin(LilvWorld* world,
sord_iter_free(files);
}
-SerdStatus
+static SerdStatus
lilv_world_load_graph(LilvWorld* world, SordNode* graph, const LilvNode* uri)
{
const SerdNode* base = sord_node_to_serd_node(uri->node);