diff options
author | David Robillard <d@drobilla.net> | 2012-02-28 18:13:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-28 18:13:00 +0000 |
commit | fd8ecd85b21e104e669017a04076a60162420a53 (patch) | |
tree | 9132fd8c68dd44a1ba9906b44ca5a545f35fbd0c /utils | |
parent | d175e2de6d3b51dfa1af5ea95bdad6e8c97df795 (diff) | |
download | lilv-fd8ecd85b21e104e669017a04076a60162420a53.tar.gz lilv-fd8ecd85b21e104e669017a04076a60162420a53.tar.bz2 lilv-fd8ecd85b21e104e669017a04076a60162420a53.zip |
Update for latest lv2core.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4004 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2info.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/lv2info.c b/utils/lv2info.c index 02aee10..b6955ba 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -32,6 +32,7 @@ LilvNode* applies_to_pred = NULL; LilvNode* control_class = NULL; LilvNode* event_class = NULL; LilvNode* in_group_pred = NULL; +LilvNode* is_parameter_pred = NULL; LilvNode* label_pred = NULL; LilvNode* preset_class = NULL; LilvNode* role_pred = NULL; @@ -108,6 +109,13 @@ print_port(const LilvPlugin* p, printf("\t\tName: %s\n", lilv_node_as_string(name)); lilv_node_free(name); + LilvNodes* parameters = lilv_port_get_value(p, port, is_parameter_pred); + if (lilv_nodes_size(parameters) > 0) + printf("\t\tParameter: %s\n", + lilv_node_as_string( + lilv_nodes_get(parameters, lilv_nodes_begin(parameters)))); + lilv_nodes_free(parameters); + LilvNodes* groups = lilv_port_get_value(p, port, in_group_pred); if (lilv_nodes_size(groups) > 0) printf("\t\tGroup: %s\n", @@ -394,6 +402,7 @@ main(int argc, char** argv) control_class = lilv_new_uri(world, LILV_URI_CONTROL_PORT); event_class = lilv_new_uri(world, LILV_URI_EVENT_PORT); in_group_pred = lilv_new_uri(world, NS_PG "inGroup"); + is_parameter_pred = lilv_new_uri(world, LILV_NS_LV2 "isParameter"); label_pred = lilv_new_uri(world, LILV_NS_RDFS "label"); preset_class = lilv_new_uri(world, NS_PSET "Preset"); role_pred = lilv_new_uri(world, NS_PG "role"); @@ -431,6 +440,7 @@ main(int argc, char** argv) lilv_node_free(role_pred); lilv_node_free(preset_class); lilv_node_free(label_pred); + lilv_node_free(is_parameter_pred); lilv_node_free(in_group_pred); lilv_node_free(event_class); lilv_node_free(control_class); |