summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-15 21:59:27 +0000
committerDavid Robillard <d@drobilla.net>2012-03-15 21:59:27 +0000
commite5657ab8d82a6b40c535526b29c4c0fe40b828a6 (patch)
tree98996863e0efbd243bedd22031c364a811692a3d /src/world.c
parent441de5ce4490b85b9b5b329e3dcfc5f3b275077e (diff)
downloadlilv-e5657ab8d82a6b40c535526b29c4c0fe40b828a6.tar.gz
lilv-e5657ab8d82a6b40c535526b29c4c0fe40b828a6.tar.bz2
lilv-e5657ab8d82a6b40c535526b29c4c0fe40b828a6.zip
Implement new LV2 discovery API.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4062 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 3ae9f7c..7eea802 100644
--- a/src/world.c
+++ b/src/world.c
@@ -41,6 +41,11 @@ lilv_world_new(void)
world->loaded_files = zix_tree_new(
false, lilv_resource_node_cmp, NULL, (ZixDestroyFunc)lilv_node_free);
+#ifdef LILV_NEW_LV2
+ world->libs = zix_tree_new(
+ false, lilv_header_compare_by_uri, NULL, NULL);
+#endif
+
#define NS_DCTERMS "http://purl.org/dc/terms/"
#define NS_DYNMAN "http://lv2plug.in/ns/ext/dynmanifest#"
#define NS_PSET "http://lv2plug.in/ns/ext/presets#"
@@ -131,6 +136,11 @@ lilv_world_free(LilvWorld* world)
zix_tree_free((ZixTree*)world->loaded_files);
world->loaded_files = NULL;
+#ifdef LILV_NEW_LV2
+ zix_tree_free((ZixTree*)world->libs);
+ world->libs = NULL;
+#endif
+
zix_tree_free((ZixTree*)world->plugin_classes);
world->plugin_classes = NULL;