diff options
author | David Robillard <d@drobilla.net> | 2014-07-15 19:48:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-07-15 19:48:59 +0000 |
commit | 45f02a1390bbea3f7acbef5fdb4807a9f9331f3d (patch) | |
tree | c0a04698cdc1d392b5671ebe3c20d302acae61bf /lilv | |
parent | c067725cf5c187bca3c7b9a41c8b90a8ce50d95d (diff) | |
download | lilv-45f02a1390bbea3f7acbef5fdb4807a9f9331f3d.tar.gz lilv-45f02a1390bbea3f7acbef5fdb4807a9f9331f3d.tar.bz2 lilv-45f02a1390bbea3f7acbef5fdb4807a9f9331f3d.zip |
Add lilv_world_unload_bundle() and lilv_world_unload_resource().
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5413 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lilv')
-rw-r--r-- | lilv/lilv.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h index 8c60132..7de90d4 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -608,6 +608,18 @@ lilv_world_load_bundle(LilvWorld* world, LilvNode* bundle_uri); /** + Unload a specific bundle. + + This unloads statements loaded by lilv_world_load_bundle(). Note that this + is not necessarily all information loaded from the bundle. If any resources + have been separately loaded with liv_world_load_resource(), they must be + separately unloaded with lilv_world_unload_resource(). +*/ +LILV_API +int +lilv_world_unload_bundle(LilvWorld* world, LilvNode* bundle_uri); + +/** Load all the data associated with the given @c resource. @param resource Must be a subject (i.e. a URI or a blank node). @return The number of files parsed, or -1 on error @@ -621,6 +633,18 @@ lilv_world_load_resource(LilvWorld* world, const LilvNode* resource); /** + Unload all the data associated with the given @c resource. + @param resource Must be a subject (i.e. a URI or a blank node). + + This unloads all data loaded by a previous call to + lilv_world_load_resource() with the given @c resource. +*/ +LILV_API +int +lilv_world_unload_resource(LilvWorld* world, + const LilvNode* resource); + +/** Get the parent of all other plugin classes, lv2:Plugin. */ LILV_API @@ -1236,7 +1260,7 @@ lilv_port_get_scale_points(const LilvPlugin* plugin, This function can be used to load the default state of a plugin by passing the plugin URI as the @p subject parameter. @param subject The subject of the state description (e.g. a preset URI). - @return A new LilvState which must be freed with lilv_state_free(). + @return A new LilvState which must be freed with lilv_state_free(), or NULL. */ LILV_API LilvState* |