summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-26 19:35:21 +0000
committerDavid Robillard <d@drobilla.net>2012-03-26 19:35:21 +0000
commitfb451c37b08366e1fa52762fe928e607c599dee4 (patch)
treec4543decc6b0e82282053f7ccc5200c3fd4b42e5 /src
parent8a7e27e70ad3df76cc1fb69820bde805cba18c3e (diff)
downloadlilv-fb451c37b08366e1fa52762fe928e607c599dee4.tar.gz
lilv-fb451c37b08366e1fa52762fe928e607c599dee4.tar.bz2
lilv-fb451c37b08366e1fa52762fe928e607c599dee4.zip
lilv_plugin_get_port_by_parameter() => lilv_plugin_get_port_by_designation().
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4109 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/lilv_internal.h10
-rw-r--r--src/plugin.c10
-rw-r--r--src/world.c8
3 files changed, 14 insertions, 14 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index a80bfdb..9ae6eed 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -153,25 +153,26 @@ struct LilvWorldImpl {
ZixTree* libs;
struct {
SordNode* dc_replaces;
- SordNode* doap_name;
SordNode* dman_DynManifest;
+ SordNode* doap_name;
+ SordNode* lv2_Plugin;
+ SordNode* lv2_Specification;
SordNode* lv2_appliesTo;
SordNode* lv2_binary;
SordNode* lv2_default;
+ SordNode* lv2_designation;
SordNode* lv2_extensionData;
SordNode* lv2_index;
SordNode* lv2_maximum;
SordNode* lv2_minimum;
SordNode* lv2_name;
SordNode* lv2_optionalFeature;
- SordNode* lv2_Plugin;
SordNode* lv2_port;
SordNode* lv2_portProperty;
SordNode* lv2_reportsLatency;
SordNode* lv2_requiredFeature;
- SordNode* lv2_Specification;
SordNode* lv2_symbol;
- SordNode* lv2_isParameter;
+ SordNode* null_uri;
SordNode* pset_value;
SordNode* rdf_a;
SordNode* rdf_value;
@@ -184,7 +185,6 @@ struct LilvWorldImpl {
SordNode* xsd_decimal;
SordNode* xsd_double;
SordNode* xsd_integer;
- SordNode* null_uri;
} uris;
LilvOptions opt;
};
diff --git a/src/plugin.c b/src/plugin.c
index 164a212..fb181c8 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -611,9 +611,9 @@ lilv_plugin_get_port_by_property(const LilvPlugin* plugin,
LILV_API
LilvPort*
-lilv_plugin_get_port_by_parameter(const LilvPlugin* plugin,
- const LilvNode* port_class,
- const LilvNode* parameter)
+lilv_plugin_get_port_by_designation(const LilvPlugin* plugin,
+ const LilvNode* port_class,
+ const LilvNode* designation)
{
LilvWorld* world = plugin->world;
lilv_plugin_load_ports_if_necessary(plugin);
@@ -622,8 +622,8 @@ lilv_plugin_get_port_by_parameter(const LilvPlugin* plugin,
SordIter* iter = lilv_world_query_internal(
world,
port->node,
- world->uris.lv2_isParameter,
- parameter->val.uri_val);
+ world->uris.lv2_designation,
+ designation->val.uri_val);
const bool found = !sord_iter_end(iter) &&
lilv_port_is_a(plugin, port, port_class);
diff --git a/src/world.c b/src/world.c
index 5ec39e2..3c499f9 100644
--- a/src/world.c
+++ b/src/world.c
@@ -53,25 +53,25 @@ lilv_world_new(void)
#define NEW_URI(uri) sord_new_uri(world->world, (const uint8_t*)uri)
world->uris.dc_replaces = NEW_URI(NS_DCTERMS "replaces");
- world->uris.doap_name = NEW_URI(LILV_NS_DOAP "name");
world->uris.dman_DynManifest = NEW_URI(NS_DYNMAN "DynManifest");
+ world->uris.doap_name = NEW_URI(LILV_NS_DOAP "name");
+ world->uris.lv2_Plugin = NEW_URI(LILV_NS_LV2 "Plugin");
+ world->uris.lv2_Specification = NEW_URI(LILV_NS_LV2 "Specification");
world->uris.lv2_appliesTo = NEW_URI(LILV_NS_LV2 "appliesTo");
world->uris.lv2_binary = NEW_URI(LILV_NS_LV2 "binary");
world->uris.lv2_default = NEW_URI(LILV_NS_LV2 "default");
+ world->uris.lv2_designation = NEW_URI(LILV_NS_LV2 "designation");
world->uris.lv2_extensionData = NEW_URI(LILV_NS_LV2 "extensionData");
world->uris.lv2_index = NEW_URI(LILV_NS_LV2 "index");
world->uris.lv2_maximum = NEW_URI(LILV_NS_LV2 "maximum");
world->uris.lv2_minimum = NEW_URI(LILV_NS_LV2 "minimum");
world->uris.lv2_name = NEW_URI(LILV_NS_LV2 "name");
world->uris.lv2_optionalFeature = NEW_URI(LILV_NS_LV2 "optionalFeature");
- world->uris.lv2_Plugin = NEW_URI(LILV_NS_LV2 "Plugin");
world->uris.lv2_port = NEW_URI(LILV_NS_LV2 "port");
world->uris.lv2_portProperty = NEW_URI(LILV_NS_LV2 "portProperty");
world->uris.lv2_reportsLatency = NEW_URI(LILV_NS_LV2 "reportsLatency");
world->uris.lv2_requiredFeature = NEW_URI(LILV_NS_LV2 "requiredFeature");
- world->uris.lv2_Specification = NEW_URI(LILV_NS_LV2 "Specification");
world->uris.lv2_symbol = NEW_URI(LILV_NS_LV2 "symbol");
- world->uris.lv2_isParameter = NEW_URI(LILV_NS_LV2 "isParameter");
world->uris.pset_value = NEW_URI(NS_PSET "value");
world->uris.rdf_a = NEW_URI(LILV_NS_RDF "type");
world->uris.rdf_value = NEW_URI(LILV_NS_RDF "value");