diff options
author | David Robillard <d@drobilla.net> | 2012-01-08 03:13:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-08 03:13:15 +0000 |
commit | a79fe5a88d0ef9f440fd6b8330a82fb67839fabd (patch) | |
tree | 239f3839a3ab40137b1a35e35abc06eb7d1b6aca /src/port.c | |
parent | 59b7cb60f0dcdd639ee4b130df9cbce3d7ebf04a (diff) | |
download | lilv-a79fe5a88d0ef9f440fd6b8330a82fb67839fabd.tar.gz lilv-a79fe5a88d0ef9f440fd6b8330a82fb67839fabd.tar.bz2 lilv-a79fe5a88d0ef9f440fd6b8330a82fb67839fabd.zip |
Add file support to state implementation.
Use cleaner and more consistent names for world URIs.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3918 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/port.c')
-rw-r--r-- | src/port.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -68,7 +68,7 @@ lilv_port_has_property(const LilvPlugin* p, SordIter* results = lilv_world_query_internal( p->world, port->node, - p->world->lv2_portproperty_node, + p->world->uris.lv2_portProperty, lilv_node_as_node(property)); const bool ret = !lilv_matches_end(results); @@ -142,7 +142,7 @@ lilv_port_get_name(const LilvPlugin* p, const LilvPort* port) { LilvNodes* results = lilv_port_get_value_by_node( - p, port, p->world->lv2_name_node); + p, port, p->world->uris.lv2_name); LilvNode* ret = NULL; if (results) { @@ -177,7 +177,7 @@ lilv_port_get_range(const LilvPlugin* p, { if (def) { LilvNodes* defaults = lilv_port_get_value_by_node( - p, port, p->world->lv2_default_node); + p, port, p->world->uris.lv2_default); *def = defaults ? lilv_node_duplicate(lilv_nodes_get_first(defaults)) : NULL; @@ -185,7 +185,7 @@ lilv_port_get_range(const LilvPlugin* p, } if (min) { LilvNodes* minimums = lilv_port_get_value_by_node( - p, port, p->world->lv2_minimum_node); + p, port, p->world->uris.lv2_minimum); *min = minimums ? lilv_node_duplicate(lilv_nodes_get_first(minimums)) : NULL; @@ -193,7 +193,7 @@ lilv_port_get_range(const LilvPlugin* p, } if (max) { LilvNodes* maximums = lilv_port_get_value_by_node( - p, port, p->world->lv2_maximum_node); + p, port, p->world->uris.lv2_maximum); *max = maximums ? lilv_node_duplicate(lilv_nodes_get_first(maximums)) : NULL; @@ -222,12 +222,12 @@ lilv_port_get_scale_points(const LilvPlugin* p, LilvNode* value = lilv_plugin_get_unique( p, point, - p->world->rdf_value_node); + p->world->uris.rdf_value); LilvNode* label = lilv_plugin_get_unique( p, point, - p->world->rdfs_label_node); + p->world->uris.rdfs_label); if (value && label) { zix_tree_insert(ret, lilv_scale_point_new(value, label), NULL); @@ -245,7 +245,7 @@ lilv_port_get_properties(const LilvPlugin* p, const LilvPort* port) { LilvNode* pred = lilv_node_new_from_node( - p->world, p->world->lv2_portproperty_node); + p->world, p->world->uris.lv2_portProperty); LilvNodes* ret = lilv_port_get_value(p, port, pred); lilv_node_free(pred); return ret; |