summaryrefslogtreecommitdiffstats
path: root/src/pluginclass.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/pluginclass.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/pluginclass.c')
-rw-r--r--src/pluginclass.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c
index eb6923d..0764576 100644
--- a/src/pluginclass.c
+++ b/src/pluginclass.c
@@ -82,16 +82,16 @@ lilv_plugin_class_get_children(const LilvPluginClass* plugin_class)
{
// Returned list doesn't own categories
LilvPluginClasses* all = plugin_class->world->plugin_classes;
- LilvPluginClasses* result = g_sequence_new(NULL);
+ LilvPluginClasses* result = zix_tree_new(false, lilv_ptr_cmp, NULL, NULL);
- for (GSequenceIter* i = g_sequence_get_begin_iter(all);
- i != g_sequence_get_end_iter(all);
- i = g_sequence_iter_next(i)) {
- const LilvPluginClass* c = g_sequence_get(i);
- const LilvNode* parent = lilv_plugin_class_get_parent_uri(c);
+ for (ZixTreeIter* i = zix_tree_begin(all);
+ i != zix_tree_end(all);
+ i = zix_tree_iter_next(i)) {
+ const LilvPluginClass* c = zix_tree_get(i);
+ const LilvNode* parent = lilv_plugin_class_get_parent_uri(c);
if (parent && lilv_node_equals(lilv_plugin_class_get_uri(plugin_class),
parent))
- lilv_sequence_insert(result, (LilvPluginClass*)c);
+ zix_tree_insert(result, (LilvPluginClass*)c, NULL);
}
return result;