diff options
author | David Robillard <d@drobilla.net> | 2007-07-23 17:42:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-23 17:42:08 +0000 |
commit | efc597e09cebbec1ae579cfc37d114e9a458e578 (patch) | |
tree | d50e9ae913b1ef946e3ab7c86353f93193d7bd68 /src/port.c | |
parent | 043e683a796e1338a8874b0e7c195292ff32b7de (diff) | |
download | lilv-efc597e09cebbec1ae579cfc37d114e9a458e578.tar.gz lilv-efc597e09cebbec1ae579cfc37d114e9a458e578.tar.bz2 lilv-efc597e09cebbec1ae579cfc37d114e9a458e578.zip |
Updated LV2 spec.
git-svn-id: http://svn.drobilla.net/lad/slv2@602 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r-- | src/port.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -78,9 +78,9 @@ slv2_port_get_direction(SLV2Plugin p, SLV2Value val = slv2_values_get_at(direction, i); if (slv2_value_is_uri(val)) { const char* uri = slv2_value_as_uri(val); - if (!strcmp(uri, "http://lv2plug.in/ontology#InputPort")) + if (!strcmp(uri, "http://lv2plug.in/ns/lv2core#InputPort")) ret = SLV2_PORT_DIRECTION_INPUT; - else if (!strcmp(uri, "http://lv2plug.in/ontology#OutputPort")) + else if (!strcmp(uri, "http://lv2plug.in/ns/lv2core#OutputPort")) ret = SLV2_PORT_DIRECTION_OUTPUT; } } @@ -106,9 +106,9 @@ slv2_port_get_type(SLV2Plugin p, SLV2Value val = slv2_values_get_at(type, i); if (slv2_value_is_uri(val)) { const char* uri = slv2_value_as_uri(val); - if (!strcmp(uri, "http://lv2plug.in/ontology#ControlPort")) + if (!strcmp(uri, "http://lv2plug.in/ns/lv2core#ControlPort")) ret = SLV2_PORT_TYPE_CONTROL; - else if (!strcmp(uri, "http://lv2plug.in/ontology#AudioPort")) + else if (!strcmp(uri, "http://lv2plug.in/ns/lv2core#AudioPort")) ret = SLV2_PORT_TYPE_AUDIO; else if (!strcmp(uri, "http://ll-plugins.nongnu.org/lv2/ext/MidiPort")) ret = SLV2_PORT_TYPE_MIDI; @@ -139,10 +139,10 @@ slv2_port_has_hint(SLV2Plugin p, const SLV2Value val = slv2_values_get_at(type, i); if (slv2_value_is_uri(val)) { const char* uri = slv2_value_as_uri(val); - if (!strcmp(uri, "http://lv2plug.in/ontology#connectionOptional")) + if (!strcmp(uri, "http://lv2plug.in/ns/lv2core#connectionOptional")) return true; ret = SLV2_PORT_TYPE_CONTROL; - else if (!strcmp(uri, "http://lv2plug.in/ontology#AudioPort")) + else if (!strcmp(uri, "http://lv2plug.in/ns/lv2core#AudioPort")) ret = SLV2_PORT_TYPE_AUDIO; else if (!strcmp(uri, "http://ll-plugins.nongnu.org/lv2/ext/MidiPort")) ret = SLV2_PORT_TYPE_MIDI; |