diff options
author | David Robillard <d@drobilla.net> | 2011-12-16 04:59:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-16 04:59:14 +0000 |
commit | b8eb516e97042ca9559aaa506becf504180df0a8 (patch) | |
tree | 26fdb669e20b70b9927c1bd62723c48b6947dddc /lilv/lilv.h | |
parent | 3af74220b27e5b5b2bfa7061eb773d0a563d2600 (diff) | |
download | lilv-b8eb516e97042ca9559aaa506becf504180df0a8.tar.gz lilv-b8eb516e97042ca9559aaa506becf504180df0a8.tar.bz2 lilv-b8eb516e97042ca9559aaa506becf504180df0a8.zip |
Fix lilv_world_find_nodes to work with wildcard subjects.
Add lilv_plugin_get_related to get resources related to plugins that
are not directly rdfs:seeAlso linked (e.g. presets).
Add lilv_world_load_resource for related resources (e.g. presets).
Print presets in lv2info.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3877 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'lilv/lilv.h')
-rw-r--r-- | lilv/lilv.h | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h index 649d341..ca3809d 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -583,6 +583,19 @@ lilv_world_load_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 + + All accessible data files linked to @c resource with rdfs:seeAlso will be + loaded into the world model. +*/ +LILV_API +int +lilv_world_load_resource(LilvWorld* world, + const LilvNode* resource); + +/** Get the parent of all other plugin classes, lv2:Plugin. */ LILV_API @@ -919,7 +932,7 @@ bool lilv_plugin_is_replaced(const LilvPlugin* plugin); /** - Write the Turtle description of @c plugin to @c file. + Write the Turtle description of @c plugin to @c plugin_file. This function is particularly useful for porting plugins in conjunction with an LV2 bridge such as NASPRO. @@ -931,6 +944,12 @@ lilv_plugin_write_description(LilvWorld* world, const LilvNode* base_uri, FILE* plugin_file); +/** + Write a manifest entry for @c plugin to @c manifest_file. + + This function is intended for use with lilv_plugin_write_description to + write a complete description of a plugin to a bundle. +*/ LILV_API void lilv_plugin_write_manifest_entry(LilvWorld* world, @@ -940,6 +959,23 @@ lilv_plugin_write_manifest_entry(LilvWorld* world, const char* plugin_file_path); /** + Get the resources related to @c plugin with lv2:appliesTo. + + Some plugin-related resources are not linked directly to the plugin with + rdfs:seeAlso and thus will not be automatically loaded along with the plugin + data (usually for performance reasons). All such resources of the given @c + type related to @c plugin can be accessed with this function. + + If @c type is NULL, all such resources will be returned, regardless of type. + + To actually load the data for each returned resource, use + lilv_world_load_resource. +*/ +LILV_API +LilvNodes* +lilv_plugin_get_related(const LilvPlugin* plugin, const LilvNode* type); + +/** @} @name Port @{ |