diff options
author | David Robillard <d@drobilla.net> | 2011-02-04 02:44:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-04 02:44:07 +0000 |
commit | cc61578f0f1417aba3c6d147d164bc644541372b (patch) | |
tree | dae833664026ff4de6e158ce4b4f038cbd8d18cd /src/pluginclass.c | |
parent | b0c49632a5ee21d4ea35d0ae6160910fd35d68f3 (diff) | |
download | lilv-cc61578f0f1417aba3c6d147d164bc644541372b.tar.gz lilv-cc61578f0f1417aba3c6d147d164bc644541372b.tar.bz2 lilv-cc61578f0f1417aba3c6d147d164bc644541372b.zip |
Replace use of raptor (for raptor_sequence) with glib.
SLV2 now depends only on serd, sord, and glib.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2903 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginclass.c')
-rw-r--r-- | src/pluginclass.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c index b98413f..e588595 100644 --- a/src/pluginclass.c +++ b/src/pluginclass.c @@ -82,13 +82,14 @@ SLV2PluginClasses slv2_plugin_class_get_children(SLV2PluginClass plugin_class) { // Returned list doesn't own categories - SLV2PluginClasses result = raptor_new_sequence(NULL, NULL); + SLV2PluginClasses result = g_ptr_array_new(); - for (int i = 0; i < raptor_sequence_size(plugin_class->world->plugin_classes); ++i) { - SLV2PluginClass c = raptor_sequence_get_at(plugin_class->world->plugin_classes, i); + for (unsigned i = 0; i < ((GPtrArray*)plugin_class->world->plugin_classes)->len; ++i) { + SLV2PluginClass c = g_ptr_array_index( + (GPtrArray*)plugin_class->world->plugin_classes, i); SLV2Value parent = slv2_plugin_class_get_parent_uri(c); if (parent && slv2_value_equals(slv2_plugin_class_get_uri(plugin_class), parent)) - raptor_sequence_push(result, c); + g_ptr_array_add(result, c); } return result; |