diff options
author | David Robillard <d@drobilla.net> | 2007-10-03 18:35:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-03 18:35:52 +0000 |
commit | d596bb4bedbf9ff267cfe924bb4d376213efd3ec (patch) | |
tree | eff0daa07315d145dfac19b1e6c17416019c0de8 /utils | |
parent | 09bf0ca18301b9ef7a4360be35d2d1921a0d28d8 (diff) | |
download | lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.tar.gz lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.tar.bz2 lilv-d596bb4bedbf9ff267cfe924bb4d376213efd3ec.zip |
Updated LV2 spec.
git-svn-id: http://svn.drobilla.net/lad/slv2@809 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2_inspect.c | 51 |
1 files changed, 20 insertions, 31 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c index feb9b58..046ff73 100644 --- a/utils/lv2_inspect.c +++ b/utils/lv2_inspect.c @@ -88,18 +88,6 @@ print_port(SLV2Plugin p, uint32_t index) } printf("\n"); slv2_values_free(properties); - - SLV2Values hints = slv2_port_get_hints(p, port); - printf("\t\tHints: "); - for (unsigned i=0; i < slv2_values_size(hints); ++i) { - if (i > 0) { - printf("\n\t\t "); - } - printf("%s\n", slv2_value_as_uri(slv2_values_get_at(hints, i))); - } - printf("\n"); - - slv2_values_free(hints); } void @@ -107,7 +95,7 @@ print_plugin(SLV2Plugin p) { char* str = NULL; - printf("<%s>\n\n", slv2_plugin_get_uri(p)); + printf("%s\n\n", slv2_plugin_get_uri(p)); str = slv2_plugin_get_name(p); printf("\tName: %s\n", str); @@ -137,7 +125,7 @@ print_plugin(SLV2Plugin p) SLV2Values types = slv2_ui_get_types(ui); for (unsigned i=0; i < slv2_values_size(types); ++i) { - printf("\t\t\tType: %s\n", slv2_value_as_uri(slv2_values_get_at(types, i))); + printf("\t\t\tType: %s\n", slv2_value_as_uri(slv2_values_get_at(types, i))); } if (binary) @@ -161,37 +149,38 @@ print_plugin(SLV2Plugin p) } printf("\n"); - /* Properties */ - SLV2Values properties = slv2_plugin_get_properties(p); - printf("\tProperties: "); - for (unsigned i=0; i < slv2_values_size(properties); ++i) { + /* Required Features */ + + SLV2Values features = slv2_plugin_get_required_features(p); + printf("\tRequired Features: "); + for (unsigned i=0; i < slv2_values_size(features); ++i) { if (i > 0) { printf("\n\t "); } - printf("%s\n", slv2_value_as_uri(slv2_values_get_at(properties, i))); + printf("%s\n", slv2_value_as_uri(slv2_values_get_at(features, i))); } printf("\n"); - slv2_values_free(properties); - - - /* Hints */ + slv2_values_free(features); + + + /* Optional Features */ - SLV2Values hints = slv2_plugin_get_hints(p); - printf("\tHints: "); - for (unsigned i=0; i < slv2_values_size(hints); ++i) { + features = slv2_plugin_get_optional_features(p); + printf("\tOptional Features: "); + for (unsigned i=0; i < slv2_values_size(features); ++i) { if (i > 0) { printf("\n\t "); } - printf("%s\n", slv2_value_as_uri(slv2_values_get_at(hints, i))); + printf("%s\n", slv2_value_as_uri(slv2_values_get_at(features, i))); } printf("\n"); - slv2_values_free(hints); - - + slv2_values_free(features); + + /* Ports */ - uint32_t num_ports = slv2_plugin_get_num_ports(p); + const uint32_t num_ports = slv2_plugin_get_num_ports(p); //printf("\n\t# Ports: %d\n", num_ports); |