summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-28 22:08:51 +0000
committerDavid Robillard <d@drobilla.net>2007-04-28 22:08:51 +0000
commit2afaf28258dc8b6546c6f1c762f0d401bb50b896 (patch)
tree6f8931492a406f47b260f6060bb2fdb4d71aa25e /src/query.c
parent5d1f3ff25d5060fedfad4fb1b3fa956f478a043b (diff)
downloadlilv-2afaf28258dc8b6546c6f1c762f0d401bb50b896.tar.gz
lilv-2afaf28258dc8b6546c6f1c762f0d401bb50b896.tar.bz2
lilv-2afaf28258dc8b6546c6f1c762f0d401bb50b896.zip
Use index instead of variable name for selecting query variables (performance enhancement).
Improved ladspa2lv2, converting port hints and min/max/default values. git-svn-id: http://svn.drobilla.net/lad/slv2@481 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/query.c b/src/query.c
index bc1a7dc..b7eae2d 100644
--- a/src/query.c
+++ b/src/query.c
@@ -53,7 +53,7 @@ slv2_query_lang_filter(const char* variable)
SLV2Values
slv2_query_get_variable_bindings(librdf_query_results* results,
- const char* variable)
+ int variable)
{
SLV2Values result = NULL;
@@ -63,7 +63,7 @@ slv2_query_get_variable_bindings(librdf_query_results* results,
while (!librdf_query_results_finished(results)) {
librdf_node* node =
- librdf_query_results_get_binding_value_by_name(results, variable);
+ librdf_query_results_get_binding_value(results, variable);
librdf_uri* datatype_uri = NULL;
SLV2ValueType type = SLV2_VALUE_STRING;
@@ -94,7 +94,7 @@ slv2_query_get_variable_bindings(librdf_query_results* results,
break;
case LIBRDF_NODE_TYPE_UNKNOWN:
default:
- fprintf(stderr, "Unknown variable binding type for ?%s\n", variable);
+ fprintf(stderr, "Unknown variable binding type %d\n", variable);
break;
}
@@ -158,7 +158,7 @@ slv2_plugin_query(SLV2Plugin plugin,
SLV2Values
slv2_plugin_simple_query(SLV2Plugin plugin,
const char* sparql_str,
- const char* variable)
+ unsigned variable)
{
librdf_query_results* results = slv2_plugin_query(plugin, sparql_str);