diff options
author | David Robillard <d@drobilla.net> | 2011-11-07 21:19:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-07 21:19:53 +0000 |
commit | f40f6f9104fb7361064e68ed5aa304a3672d405f (patch) | |
tree | 35f937571fcd7fb9d090db233efe71cb06431c80 /utils | |
parent | 509b3f0f8ac8c6984af443215b77de115c177298 (diff) | |
download | lilv-f40f6f9104fb7361064e68ed5aa304a3672d405f.tar.gz lilv-f40f6f9104fb7361064e68ed5aa304a3672d405f.tar.bz2 lilv-f40f6f9104fb7361064e68ed5aa304a3672d405f.zip |
Add lilv_plugin_get_extension_data.
Print extension data in lv2info.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3605 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2info.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/lv2info.c b/utils/lv2info.c index 747e71c..d55b9cd 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -266,6 +266,22 @@ print_plugin(LilvWorld* world, printf("\n"); lilv_nodes_free(features); + /* Extension Data */ + LilvNodes* data = lilv_plugin_get_extension_data(p); + if (data) + printf("\tExtension Data: "); + first = true; + LILV_FOREACH(nodes, i, data) { + if (!first) { + printf("\n\t "); + } + printf("%s", lilv_node_as_uri(lilv_nodes_get(data, i))); + first = false; + } + if (features) + printf("\n"); + lilv_nodes_free(data); + /* Presets */ LilvNodes* presets = lilv_plugin_get_value(p, preset_pred); |