summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-28 21:31:57 +0000
committerDavid Robillard <d@drobilla.net>2011-09-28 21:31:57 +0000
commit6f5f093a2152a9cf76c756c49a75aa319ea05034 (patch)
tree1ee08a7e03eff258b02b900611875735cc11a87b /src/plugin.c
parentfe43ff5fe29d5bbe59ead086782131144e451dc6 (diff)
downloadlilv-6f5f093a2152a9cf76c756c49a75aa319ea05034.tar.gz
lilv-6f5f093a2152a9cf76c756c49a75aa319ea05034.tar.bz2
lilv-6f5f093a2152a9cf76c756c49a75aa319ea05034.zip
Remove glib dependency
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3501 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/plugin.c b/src/plugin.c
index f7adb18..c4233c4 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -18,6 +18,7 @@
#include <assert.h>
#include <math.h>
+#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -244,9 +245,9 @@ lilv_plugin_load_ports_if_necessary(const LilvPlugin* const_p)
FOREACH_MATCH(types) {
const SordNode* type = lilv_match_object(types);
if (sord_node_get_type(type) == SORD_URI) {
- lilv_array_append(
+ zix_tree_insert(
this_port->classes,
- lilv_node_new_from_node(p->world, type));
+ lilv_node_new_from_node(p->world, type), NULL);
} else {
LILV_WARNF("Plugin <%s> port type is not a URI\n",
lilv_node_as_uri(p->plugin_uri));
@@ -619,11 +620,11 @@ lilv_plugin_get_supported_features(const LilvPlugin* p)
LilvNodes* result = lilv_nodes_new();
LILV_FOREACH(nodes, i, optional)
- lilv_array_append(
- result, lilv_node_duplicate(lilv_nodes_get(optional, i)));
+ zix_tree_insert(
+ result, lilv_node_duplicate(lilv_nodes_get(optional, i)), NULL);
LILV_FOREACH(nodes, i, required)
- lilv_array_append(
- result, lilv_node_duplicate(lilv_nodes_get(required, i)));
+ zix_tree_insert(
+ result, lilv_node_duplicate(lilv_nodes_get(required, i)), NULL);
lilv_nodes_free(optional);
lilv_nodes_free(required);
@@ -780,7 +781,7 @@ lilv_plugin_get_uis(const LilvPlugin* p)
type,
binary);
- lilv_sequence_insert(result, lilv_ui);
+ zix_tree_insert(result, lilv_ui, NULL);
}
lilv_match_end(uis);