From e5657ab8d82a6b40c535526b29c4c0fe40b828a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Mar 2012 21:59:27 +0000 Subject: Implement new LV2 discovery API. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4062 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/world.c') 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; -- cgit v1.2.1